entry_block_with_predecessors.phpt 459 B

123456789101112131415161718192021222324252627282930313233
  1. --TEST--
  2. For SSA form the entry block should have no predecessors
  3. --FILE--
  4. <?php
  5. function test() {
  6. while (true) {
  7. var_dump($a + 1);
  8. $a = 1;
  9. if (@$i++) {
  10. break;
  11. }
  12. }
  13. }
  14. function test2() {
  15. while (true) {
  16. $a = 42;
  17. if (@$i++ > 1) {
  18. break;
  19. }
  20. $a = new stdClass;
  21. }
  22. }
  23. test();
  24. test2();
  25. ?>
  26. --EXPECTF--
  27. Notice: Undefined variable: a in %s on line %d
  28. int(1)
  29. int(2)