mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
5860a390d5
* PHP-8.0: JIT: Fixed JIT for FETCH_OBJ when op1 is a reference of non-object
23 lines
495 B
PHP
23 lines
495 B
PHP
--TEST--
|
|
JIT: FETCH_OBJ 005
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
opcache.jit_buffer_size=1M
|
|
opcache.jit=tracing
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
for ($i = 0; $i < 3; $i++) {
|
|
$a =& $b;
|
|
$a->p;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Attempt to read property "p" on null in %sfetch_obj_005.php on line 4
|
|
|
|
Warning: Attempt to read property "p" on null in %sfetch_obj_005.php on line 4
|
|
|
|
Warning: Attempt to read property "p" on null in %sfetch_obj_005.php on line 4
|