[php-src] Issue #15972: Assertion failure in ext/opcache/jit/zend_jit_vm_helpers.c

From: Date: Sat, 21 Sep 2024 06:06:16 +0000
Subject: [php-src] Issue #15972: Assertion failure in ext/opcache/jit/zend_jit_vm_helpers.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247845@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15972 Author: YuanchengJiang ### Description The following code: ```php <?php function test(){ for($i = 0; $i < 2; $i++){ $a = @[3][$i]; } } test(); ``` Resulted in this output: ``` /php-src/ext/opcache/jit/zend_jit_vm_helpers.c:208: zend_jit_undefined_long_key: Assertion `zval_get_type(&(*(dim))) == 4' failed. Aborted (core dumped) ``` To reproduce: ``` -d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d "opcache.jit=function" ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04

« previous php.bugs (#247845) next »