Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
  Tracing JIT: Fixed reference counting when escape because of IS_UNDEF element (test)
This commit is contained in:
Dmitry Stogov 2021-11-01 22:19:28 +03:00
commit c2079802b5

View file

@ -0,0 +1,22 @@
--TEST--
JIT FETCH_DIM_R: 009
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
$ary = [[0]];
for ($i = 2; $i < 5; $i++) {
var_dump($ary[0][$i>>1]);
$ary[0][$i] = 1;
}
?>
--EXPECTF--
Warning: Undefined array key 1 in %sfetch_dim_r_009.php on line 4
NULL
Warning: Undefined array key 1 in %sfetch_dim_r_009.php on line 4
NULL
int(1)