| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| zephir.phar | 2026-05-12 | 2.0 MB | |
| 0.20.0 source code.tar.gz | 2026-05-12 | 1.1 MB | |
| 0.20.0 source code.zip | 2026-05-12 | 1.9 MB | |
| README.md | 2026-05-12 | 4.9 kB | |
| Totals: 4 Items | 5.0 MB | 0 | |
Added
- Added support of PHP
8.5#2459, #2461 - Added closure
thisandusesupport: closures can now referencethisto call methods and access properties of the enclosing class #2497, #2503 - Added support for
charanducharliteral/variable values as method arguments to parameters typedchar/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-typeand Psalm equivalents (delegates parsing tophpstan/phpdoc-parser) #2502 - Added
ConstructorsCodeGenTestto verify generated C/H files against reference fixtures #2482
Changed
- Refactored string parameter handling to use native
zend_string *(with companionzval) 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-parserfrom1.33.0to2.3.2#2504 - Bumped
squizlabs/php_codesnifferfrom3.13.5to4.0.1#2473 - Bumped
phpunit/phpunitfrom9.6.32to9.6.33#2471 - Bumped
codecov/codecov-actionfrom3to6#2472, #2488 - Bumped
actions/checkoutto6,actions/cacheto5,actions/upload-artifactto7,actions/download-artifactto8#2474, #2475, #2476, #2477, #2480, #2481, #2464
Fixed
- Fixed
-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 - Fixed
-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) #2462 - Fixed memory leak in generated code where native
zend_string *parameters incremented refcount viaZVAL_STR_COPYwithout a matching decrement on the return path (~3.4 KB per call) #2500, #2506 - Fixed crash when passing a
char/ucharliteral or variable to a method parameter declared aschar/uchar(TypeError ingetResolvedParams) #2469, #2507 - Fixed stale
.depdependency files causing compilation failures when switching between PHP 8.x versions (now removed duringfullclean; build order corrected somake cleanruns beforephpize --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.csoPHP_VERSION_IDis visible (added missing PHP header include)