1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/opcache/tests/jit/reg_alloc_010.phpt
2024-01-15 09:39:13 +01:00

23 lines
440 B
PHP

--TEST--
Register Alloction 010: Missed store
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
--FILE--
<?php
function foo($y) {
for (; $cnt < 6; $cnt++) {
for ($i=0; $i <.1; $i++)
for(;$y;);
[$i=$y];
}
}
foo(null);
?>
DONE
--EXPECTF--
Warning: Undefined variable $cnt in %sreg_alloc_010.php on line 3
Warning: Undefined variable $cnt in %sreg_alloc_010.php on line 3
DONE