mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
36935e42ea
Closes GH-5312
34 lines
460 B
PHP
34 lines
460 B
PHP
--TEST--
|
|
For SSA form the entry block should have no predecessors
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
while (true) {
|
|
var_dump($a + 1);
|
|
$a = 1;
|
|
if (@$i++) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function test2() {
|
|
while (true) {
|
|
$a = 42;
|
|
if (@$i++ > 1) {
|
|
break;
|
|
}
|
|
$a = new stdClass;
|
|
}
|
|
}
|
|
|
|
test();
|
|
test2();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable $a in %s on line %d
|
|
int(1)
|
|
int(2)
|