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

33 lines
762 B
PHP

--TEST--
Register Alloction 006: Incorrect type store elimination
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
--FILE--
<?php
function foo() {
$a = 0;
for($i=0; $i < 6; $i++) {
$y - $b = $a ? $b : $y;
$a = $b = 7;
}
}
foo()
?>
DONE
--EXPECTF--
Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
DONE