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
Changed a constant of a PHP class or of another extension's class read in a method to be read when the code runs like PHP, instead of taking the value of the PHP that runs zephir generate#2869
Changed an array property default that reads no constant to be declared on the class like PHP does, instead of being built for each new object #2799
Fixed
Fixed PDO::FETCH_GROUP, FETCH_UNIQUE, FETCH_CLASSTYPE, FETCH_PROPS_LATE and FETCH_SERIALIZE taking the value of the PHP that runs zephir generate instead of the PHP that compiles the extension #2869
Fixed FilesystemIterator::FOLLOW_SYMLINKS and OTHER_MODE_MASK taking the value of the PHP that runs zephir generate instead of the PHP that compiles the extension #2869
Fixed reading a constant of a class that is not loaded stopping PHP with a fatal error instead of throwing Error like PHP #2869
Fixed ReflectionProperty::getDefaultValue(), ReflectionClass::getDefaultProperties() and get_class_vars() reporting null for an array property default #2799
Fixed a PHP subclass that redeclares an array property of a Zephir class getting the parent's array instead of its own default #2799
Fixed a class with an array property default that extends \Exception, \ArrayObject or another class with its own object handler skipping that handler #2799
Fixed a string spanning lines in a constant, a property default or a parameter default generating C that does not compile #2799
Fixed calling a non-static method or a constructor through a class name failing to compile instead of running on this#2854
Fixed {class}::method(), and Class::{name}() in a closure, throwing instead of running a non-static method on this#2854
Fixed a static method called through the name of its own class passing on the called class #2854
Fixed parent::__construct() without a parent constructor failing to compile instead of throwing Cannot call constructor when reached #2852
Fixed parent::__construct() on a private constructor failing to compile instead of throwing Cannot call private X::__construct()#2853
Fixed let, ++ and -- on a native or string local declared in a nested block failing to compile or changing an outer local of the same name #2772
Fixed for k, v in iterator(...) failing to compile with _ or a local declared in a nested block as the key #2772
Fixed a closure failing to compile when it captures a local declared in a nested block #2772
Fixed a use (&x) capture of a local declared in a nested block being passed by value to a by-reference parameter #2772
Fixed fetch a, a[k] on a local declared in a nested block releasing a before reading it #2772
Fixed a local declared without a value in a nested block being undefined instead of null when read before it is assigned #2772
Fixed the TypeError of an array local declared in a nested block naming $a$$N instead of $a#2772
Fixed reading a protected property of an object of a known class from an unrelated class compiling instead of failing like a private one #2784
Fixed isset, empty and fetch through a private, protected or undeclared property, such as isset o->priv["k"], failing to compile where PHP answers quietly #2784
Fixed a read that __get() answers, such as a parent's private property or an undeclared one, failing to compile #2784
Fixed a closure failing to compile when it reads a private property of its class on another object #2784
Fixed return this->x compiling for a parent's private property that let v = this->x refuses #2784
Fixed unset o->x removing a protected or private property from outside its class, or skipping __unset(), instead of throwing PHP's Error #2784
Fixed unset this->x in a parent's method leaving its private property on a subclass instance #2784
Fixed unset o->{n} with a non-string name, such as an int, doing nothing #2784
Fixed unset o->x[k] calling __isset() before __get() and missing PHP's "Indirect modification" notice #2784
Fixed an offset write or a by-reference argument on an inaccessible property throwing the same Error twice #2784
Fixed a function reaching the protected and private properties of the class that calls it #2784
Fixed let o->x = v in a function crashing the compiler #2784
This discussion was created from the release 1.11.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Changed
zephir generate#2869Fixed
PDO::FETCH_GROUP,FETCH_UNIQUE,FETCH_CLASSTYPE,FETCH_PROPS_LATEandFETCH_SERIALIZEtaking the value of the PHP that runszephir generateinstead of the PHP that compiles the extension #2869FilesystemIterator::FOLLOW_SYMLINKSandOTHER_MODE_MASKtaking the value of the PHP that runszephir generateinstead of the PHP that compiles the extension #2869Errorlike PHP #2869ReflectionProperty::getDefaultValue(),ReflectionClass::getDefaultProperties()andget_class_vars()reportingnullfor an array property default #2799\Exception,\ArrayObjector another class with its own object handler skipping that handler #2799this#2854{class}::method(), andClass::{name}()in a closure, throwing instead of running a non-static method onthis#2854parent::__construct()without a parent constructor failing to compile instead of throwingCannot call constructorwhen reached #2852parent::__construct()on a private constructor failing to compile instead of throwingCannot call private X::__construct()#2853let,++and--on a native orstringlocal declared in a nested block failing to compile or changing an outer local of the same name #2772for k, v in iterator(...)failing to compile with_or a local declared in a nested block as the key #2772use (&x)capture of a local declared in a nested block being passed by value to a by-reference parameter #2772fetch a, a[k]on a local declared in a nested block releasingabefore reading it #2772arraylocal declared in a nested block naming$a$$Ninstead of$a#2772isset,emptyandfetchthrough a private, protected or undeclared property, such asisset o->priv["k"], failing to compile where PHP answers quietly #2784__get()answers, such as a parent's private property or an undeclared one, failing to compile #2784return this->xcompiling for a parent's private property thatlet v = this->xrefuses #2784unset o->xremoving a protected or private property from outside its class, or skipping__unset(), instead of throwing PHP's Error #2784unset this->xin a parent's method leaving its private property on a subclass instance #2784unset o->{n}with a non-string name, such as anint, doing nothing #2784unset o->x[k]calling__isset()before__get()and missing PHP's "Indirect modification" notice #2784let o->x = vin a function crashing the compiler #2784This discussion was created from the release 1.11.0.
All reactions