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
Added closure this and use support: closures can now reference this to call methods and access properties of the enclosing class #2497, #2503
Added support for char and uchar literal/variable values as method arguments to parameters typed char/uchar#2469, #2507
Added support for typed constants (PHP 8.3+) in generated stubs #2498
Added PhpStan/Psalm tag pass-through whitelist for class-level docblocks in generated stubs #2501
Added validation of @phpstan-return, @phpstan-var, @phpstan-type, @phpstan-param, @phpstan-import-type and Psalm equivalents (delegates parsing to phpstan/phpdoc-parser) #2502
Added ConstructorsCodeGenTest to verify generated C/H files against reference fixtures #2482
Changed
Refactored string parameter handling to use native zend_string * (with companion zval) where the parameter isn't mutated, reducing engine round-trips for string params #2462, #2484
Refactored type optimizers and added more tests #2470
Refactored header compilation logic and updated compatibility checks for PHP 8.5 #2489
Bumped phpstan/phpdoc-parser from 1.33.0 to 2.3.2#2504
Bumped squizlabs/php_codesniffer from 3.13.5 to 4.0.1#2473
Bumped codecov/codecov-action from 3 to 6#2472, #2488
Bumped actions/checkout to 6, actions/cache to 5, actions/upload-artifact to 7, actions/download-artifact to 8#2474, #2475, #2476, #2477, #2480, #2481, #2464
Fixed
Fixed -Wincompatible-pointer-types warnings on PHP 8.5+ for zend_parse_arg_array (Z_PARAM_ARRAY/Z_PARAM_ARRAY_OR_NULL) — promoted to error by GCC 14+ #2462, #2463, #2483, #2508
Fixed -Wdiscarded-qualifiers warnings introduced on PHP 8.5 where EG(fake_scope) became const zend_class_entry * (kernel/object.c, kernel/require.c, ZEPHIR_BACKUP_SCOPE/ZEPHIR_RESTORE_SCOPE macros) #2462
Fixed memory leak in generated code where native zend_string * parameters incremented refcount via ZVAL_STR_COPY without a matching decrement on the return path (~3.4 KB per call) #2500, #2506
Fixed crash when passing a char/uchar literal or variable to a method parameter declared as char/uchar (TypeError in getResolvedParams) #2469, #2507
Fixed stale .dep dependency files causing compilation failures when switching between PHP 8.x versions (now removed during fullclean; build order corrected so make clean runs before phpize --clean) #2490, #2491
Fixed missing default values in reflection metadata for method parameters with scalar types #2457
Fixed various compiler warnings surfaced by recent GCC/Clang #2445
Fixed backtrace.c so PHP_VERSION_ID is visible (added missing PHP header include)
This discussion was created from the release 0.20.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
8.5#2459, #2461thisandusesupport: closures can now referencethisto call methods and access properties of the enclosing class #2497, #2503charanducharliteral/variable values as method arguments to parameters typedchar/uchar#2469, #2507@phpstan-return,@phpstan-var,@phpstan-type,@phpstan-param,@phpstan-import-typeand Psalm equivalents (delegates parsing tophpstan/phpdoc-parser) #2502ConstructorsCodeGenTestto verify generated C/H files against reference fixtures #2482Changed
zend_string *(with companionzval) where the parameter isn't mutated, reducing engine round-trips for string params #2462, #2484phpstan/phpdoc-parserfrom1.33.0to2.3.2#2504squizlabs/php_codesnifferfrom3.13.5to4.0.1#2473phpunit/phpunitfrom9.6.32to9.6.33#2471codecov/codecov-actionfrom3to6#2472, #2488actions/checkoutto6,actions/cacheto5,actions/upload-artifactto7,actions/download-artifactto8#2474, #2475, #2476, #2477, #2480, #2481, #2464Fixed
-Wincompatible-pointer-typeswarnings on PHP 8.5+ forzend_parse_arg_array(Z_PARAM_ARRAY/Z_PARAM_ARRAY_OR_NULL) — promoted to error by GCC 14+ #2462, #2463, #2483, #2508-Wdiscarded-qualifierswarnings introduced on PHP 8.5 whereEG(fake_scope)becameconst zend_class_entry *(kernel/object.c, kernel/require.c,ZEPHIR_BACKUP_SCOPE/ZEPHIR_RESTORE_SCOPEmacros) #2462zend_string *parameters incremented refcount viaZVAL_STR_COPYwithout a matching decrement on the return path (~3.4 KB per call) #2500, #2506char/ucharliteral or variable to a method parameter declared aschar/uchar(TypeError ingetResolvedParams) #2469, #2507.depdependency files causing compilation failures when switching between PHP 8.x versions (now removed duringfullclean; build order corrected somake cleanruns beforephpize --clean) #2490, #2491backtrace.csoPHP_VERSION_IDis visible (added missing PHP header include)This discussion was created from the release 0.20.0.
Beta Was this translation helpful? Give feedback.
All reactions