1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/ext/opcache/tests/jit/assign_obj_ref_001.phpt
T
2021-10-05 16:14:39 +03:00

22 lines
325 B
PHP

--TEST--
JIT ASSIGN_OBJ_REF: 001
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
function test() {
$obj = new stdClass;
$obj->prop =& $obj;
var_dump($obj->prop);
}
test();
?>
--EXPECT--
object(stdClass)#1 (1) {
["prop"]=>
*RECURSION*
}