php-src/Zend/tests/entry_block_with_predecessors.phpt
2016-05-24 18:29:45 +02:00

34 lines
459 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--
Notice: Undefined variable: a in %s on line %d
int(1)
int(2)