- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
The following code:
<?php$cls =newEmptyIterator();srand(1000);error_reporting(E_ALL & ~E_DEPRECATED);testConversion('','');testConversion("begin 0644 filename\n#0V%T\n",'Cat');testConversion("begin 0644 filename\n::'1T<#HO+W=W=RYW:6MI<&5D:6\$N;W)G#0H`\n","http://www.wikipedia.org\r\n");testConversion("begin 0644 filename\n#`0(#\n","\x01\x02\x03");testConversion("begin 0644 filename\n$`0(#\"@``\n","\x01\x02\x03\n");functiontestRoundTrip($data) {die("Round-trip failed! Expected" .bin2hex($data) ." to round-trip; actually got" .bin2hex($decoded));}for ($iterations =0;$iterations <500;$iterations++) {$strlen =rand(1,300);$characters ='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';$randstring ='';for ($i =0;$i <$strlen;$i++) {$randstring .=$characters[rand(0,strlen($characters) -1)];}testRoundTrip($randstring);}echo"Done!\n";thrownewHello(newstdClass);
Resulted in this output:
php: ext/opcache/jit/zend_jit_ir.c:8940: int zend_jit_init_fcall(zend_jit_ctx *, const zend_op *, uint32_t, const zend_op_array *, zend_ssa *, const zend_ssa_op *, int, zend_jit_trace_rec *, int): Assertion `call_level > 0' failed.Aborted (core dumped)
To reproduce:
-d "zend_extension=/home/phpfuzz/WorkSpace/flowfusion/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d "opcache.jit=1205"
PHP Version
nightly
Operating System
No response