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
Zend exposes getimagesize() and getimagesizefromstring() to read width/height/type/mime from image bytes. PurHur/php-compiler has no builtins; both return function_exists(...) === false under bin/vm.php.
Implementation: Native byte-header parser in ext/standard/VmImage.php (PNG/GIF/JPEG/BMP/WebP); JIT/AOT via GetimagesizeJitHelper compile hook (PHP-in-PHP, no host GD, no new C runtime). php-src ref: ext/standard/image.c.
Verification:
Issue repro: VM output matches Zend PHP 8.x for 1×1 PNG (getimagesize + getimagesizefromstring)
vendor/bin/phpunit --filter getimagesize → OK (6 tests)
Activity
PurHur commentedon Jun 12, 2026
claim: PHP Compiler STD Lib — starting this run
Add getimagesize()/getimagesizefromstring() with VM/JIT/AOT lowering (#…
PurHur commentedon Jun 12, 2026
Merged via #8239.
Implementation: Native byte-header parser in
ext/standard/VmImage.php(PNG/GIF/JPEG/BMP/WebP); JIT/AOT viaGetimagesizeJitHelpercompile hook (PHP-in-PHP, no host GD, no new C runtime). php-src ref:ext/standard/image.c.Verification:
getimagesize+getimagesizefromstring)vendor/bin/phpunit --filter getimagesize→ OK (6 tests)php bin/compile.php -l test/repro/aot_getimagesize_3271.php→ lint_exit:0