mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
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:
commit
c2079802b5
1 changed files with 22 additions and 0 deletions
22
ext/opcache/tests/jit/fetch_dim_r_009.phpt
Normal file
22
ext/opcache/tests/jit/fetch_dim_r_009.phpt
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue