lisachenko / z-engine

:zap: PHP Engine Direct API
MIT License
448 stars 22 forks source link

Fail with debug build of PHP during adding of interface #5

Closed lisachenko closed 4 years ago

lisachenko commented 4 years ago

Test fails with assertion

php-src/Zend/zend_operators.c:2345: instanceof_interface: Assertion `instance_ce->ce_flags & (1 << 20)' failed.

Need to investigate and fix it.

lisachenko commented 4 years ago

Issue was not fixed, error is still present.

lisachenko commented 4 years ago

This situation was possible during addition of interface to the class with empty list of interfaces. In this case bit ZEND_ACC_RESOLVED_INTERFACES was not set in ce_flags, thus triggers an assertion error.