Skip to content

1.9.0

Latest

Choose a tag to compare

@Jeckerson Jeckerson released this 21 Nov 09:10
· 2 commits to development since this release

Added

  • Added PHP 8.6 support #2670

Changed

  • 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