mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Property hooks were not handled for JIT+trait+preloading. Split the existing functions that handle op arrays, and add iterations for property hooks. Closes GH-18923.
24 lines
461 B
PHP
24 lines
461 B
PHP
--TEST--
|
|
GH-18898 (SEGV zend_jit_op_array_hot with property hooks and preloading) - jit 1235
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.jit=1235
|
|
opcache.jit_buffer_size=16M
|
|
opcache.preload={PWD}/../gh18534_preload.inc
|
|
--EXTENSIONS--
|
|
opcache
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$test = new DummyModel;
|
|
var_dump($test->dummyProperty2);
|
|
echo "ok";
|
|
?>
|
|
--EXPECT--
|
|
NULL
|
|
ok
|