Closed
Description
Description
The following code:
<?php
var_dump(match ($undefinedVariable) {
1, 2, 3, 4, 5 => 'foo',
default => 'bar',
});
?>
Resulted in this output:
Zend/zend_vm_execute.h:6015:2: runtime error: member access within misaligned address 0x7ff9c500501f for type 'zval' (aka 'struct _zval_struct'), which requires 8 byte alignment
0x7ff9c500501f: note: pointer points here
00 01 00 00 00 00 a8 07 7c f9 7f 00 00 a0 50 00 c5 f9 7f 00 00 00 00 00 00 00 00 00 00 c0 93 06
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Zend/zend_vm_execute.h:6015:2
To reproduce:
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=1024M
opcache.jit=0101
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04