You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phalcon\Di::reset() sets Phalcon\Di::_default to PHALCON_GLOBAL(z_null). Then, when we create FactoryDefault, zend_update_class_constants is invoked. It then copies the values of all static properties from the parent class and makes them all references.
At this point PHALCON_GLOBAL(z_null) becomes a reference.
Then, when Phalcon\DI\FactoryDefault is instantiated, it calls
self::$_default = $this;
zend_update_static_property() sees that z_null is a reference and updates it with $this.
And because Travis PHP is built in release mode, main/php.h defines NDEBUG which effectively disables assert() and this is why there is no crash under Travis.
The text was updated successfully, but these errors were encountered: