1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 02:23:18 +02:00
Files
archived-php-src/ext/opcache/tests/jit/fetch_obj_005.phpt
Dmitry Stogov 5860a390d5 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  JIT: Fixed JIT for FETCH_OBJ when op1 is a reference of non-object
2021-09-22 14:55:02 +03:00

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