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
Raised the minimum ext-zephir_parser to 2.12.0 for all-caps class names in a cast, a type hint, a return type or catch, and a keyword as a named argument name #2824
Changed doubleval() to call PHP's function instead of inlining it, so PHP 8.6 reports its deprecation #2670
Changed call_user_func() and call_user_func_array() to throw PHP's TypeError for an invalid callback, such as an unknown method or a private method of another class, where they gave a warning and returned null; a private callback of the calling class is now accepted #2824
Fixed
Fixed a method using func_get_arg() throwing when called through a callable such as call_user_func()#2670
Fixed unique_key() leaking a string for every number it converts #2670
Fixed fetch of a property skipping __isset(), visibility and initialization, and missing a property named by a non-string such as 1#2832
Fixed an exception from __isset(), __get() or the property name during fetch not stopping the method #2832
Fixed fetch of o->{"x"} or of a property named by an int failing to compile #2832
Fixed fetch a, a[k] and fetch k, a[k] releasing the array or the key before reading it #2832
Fixed isset, empty and fetch reading the key silently and a container below the last one noisily, unlike PHP #2832
Fixed a property name with an escape such as o->{"a\"b"} being read, written and tested with its backslashes kept #2832
Fixed a compound assignment, ++ or -- on an undefined property warning before the dynamic property deprecation, calling __set(), and leaving no property when an error handler throws, unlike PHP #2808
Fixed a compound assignment, ++ or -- on a non-object warning instead of throwing PHP's Error #2808
Fixed ++ and -- on an uninitialized typed property writing it after PHP's Error, and on a typed int property at its limit throwing the wrong TypeError or none #2808
Fixed a compound assignment on a property holding a typed reference throwing the property's TypeError instead of the reference's #2808
Fixed assigning a property of a non-object warning instead of throwing PHP's Error #2808
Fixed code after a property assignment that throws still running #2808
Fixed o->{n} = v with a non-string n, such as an int, warning instead of converting the name as PHP does #2808
Fixed o->p[k] op= v on a typed property that does not allow an array throwing a TypeError, where PHP creates the array #2808
Fixed errors naming an anonymous class cutting its name on PHP 8.6, which prints it whole #2808
Fixed a method's return type being resolved in the calling file, so a chained call warned about or was checked against a wrong class #2824
Fixed an all-caps class name such as PDO failing to parse in a cast, a type hint or catch, and instanceof PDO reading a constant #2824
Fixed named arguments being passed in the order written, and a skipped optional parameter getting null instead of its default #2824
Fixed a named argument failing to compile after a positional one or with a keyword as its name, such as strlen(string: s)#2824
Fixed a variadic parameter dropping the named arguments it has no parameter for #2824
Fixed a variable first assigned by a by-reference parameter, as in parse_str(s, result), leaking what the callee stored in it #2824
Fixed create_instance_params() crashing when given arguments for a class without a constructor #2839
Fixed var_export(x, true) failing to compile when x is a cast, a native variable, a literal or another expression #2774
Fixed var_export() ignoring its return argument, so var_export(x, true) printed and var_export(x) returned the string without printing #2774
Fixed var_export(x, true) giving a partial string when an exception such as from a property hook stops the export #2774
Fixed var_export() and var_dump() of a string literal reading the variable of that name instead #2774
This discussion was created from the release 1.9.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.
Added
Changed
ext-zephir_parserto 2.12.0 for all-caps class names in a cast, a type hint, a return type orcatch, and a keyword as a named argument name #2824doubleval()to call PHP's function instead of inlining it, so PHP 8.6 reports its deprecation #2670call_user_func()andcall_user_func_array()to throw PHP's TypeError for an invalid callback, such as an unknown method or a private method of another class, where they gave a warning and returned null; a private callback of the calling class is now accepted #2824Fixed
func_get_arg()throwing when called through a callable such ascall_user_func()#2670unique_key()leaking a string for every number it converts #2670fetchof a property skipping__isset(), visibility and initialization, and missing a property named by a non-string such as1#2832__isset(),__get()or the property name duringfetchnot stopping the method #2832fetchofo->{"x"}or of a property named by anintfailing to compile #2832fetch a, a[k]andfetch k, a[k]releasing the array or the key before reading it #2832isset,emptyandfetchreading the key silently and a container below the last one noisily, unlike PHP #2832o->{"a\"b"}being read, written and tested with its backslashes kept #2832++or--on an undefined property warning before the dynamic property deprecation, calling__set(), and leaving no property when an error handler throws, unlike PHP #2808++or--on a non-object warning instead of throwing PHP's Error #2808++and--on an uninitialized typed property writing it after PHP's Error, and on a typedintproperty at its limit throwing the wrong TypeError or none #2808o->{n} = vwith a non-stringn, such as anint, warning instead of converting the name as PHP does #2808o->p[k] op= von a typed property that does not allow an array throwing a TypeError, where PHP creates the array #2808PDOfailing to parse in a cast, a type hint orcatch, andinstanceof PDOreading a constant #2824nullinstead of its default #2824strlen(string: s)#2824parse_str(s, result), leaking what the callee stored in it #2824create_instance_params()crashing when given arguments for a class without a constructor #2839var_export(x, true)failing to compile whenxis a cast, a native variable, a literal or another expression #2774var_export()ignoring itsreturnargument, sovar_export(x, true)printed andvar_export(x)returned the string without printing #2774var_export(x, true)giving a partial string when an exception such as from a property hook stops the export #2774var_export()andvar_dump()of a string literal reading the variable of that name instead #2774This discussion was created from the release 1.9.0.
All reactions