Category
php-in-php · php-src-strict
Problem
lib/JIT/Builtin/GzStreamIoJit.php (~882 LOC) lowers __compiler_gzopen / __compiler_gzwrite / __compiler_gzread / … with inline libz LLVM on the shared stream handle table. VM paths already use ext/standard/VmGzStream.php (pure PHP via VmGzStreamPure + VmZlib, #8936).
php-src reference
Repro
wc -l lib/JIT/Builtin/GzStreamIoJit.php
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
php bin/vm.php -r "\$p=sys_get_temp_dir().\"/gz_\".getmypid().\".gz\"; \$h=gzopen(\$p,\"w9\"); gzwrite(\$h,\"hi\"); gzclose(\$h); var_export(gzfile(\$p)); @unlink(\$p);"
'
Done when
Refs #6168, #8936, #1492
Category
php-in-php· php-src-strictProblem
lib/JIT/Builtin/GzStreamIoJit.php(~882 LOC) lowers__compiler_gzopen/__compiler_gzwrite/__compiler_gzread/ … with inline libz LLVM on the shared stream handle table. VM paths already useext/standard/VmGzStream.php(pure PHP viaVmGzStreamPure+VmZlib, #8936).php-src reference
ext/zlib/zlib.c— gzopen/gzwrite/gzread/gzcloseRepro
Done when
GzStreamJitHelperPHP;GzStreamIoJit.phpdeletedRefs #6168, #8936, #1492