<?php
for ($i = 0; $i < 100; $i++) {
UniqueListLast::bar();
}
for ($i = 0; $i < 100; $i++) {
new UniqueListLast();
}
?>
Resulted in this output:
/php-src/ext/opcache/jit/zend_jit.c:2788:21: runtime error: member access within misaligned address 0x000500000004 for type 'zend_call_info' (aka 'struct _zend_call_info'), which requires 8 byte alignment
0x000500000004: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/opcache/jit/zend_jit.c:2788:21
Description
The following code:
Resulted in this output:
To reproduce:
gh8461-007.inc is at ext/opcache/tests/jit/gh8461-007.inc
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04