bug78341.phpt 322 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Bug #78341: Failure to detect smart branch in DFA pass
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. function test($a) {
  8. // Just some dead code...
  9. if (strpos("foo", "foo") !== 0) {
  10. echo "Foo";
  11. }
  12. $x = $a === null;
  13. if ($x) {
  14. var_dump($x);
  15. }
  16. }
  17. test(null);
  18. ?>
  19. --EXPECT--
  20. bool(true)