1234567891011121314151617181920212223 |
- --TEST--
- Bug #78341: Failure to detect smart branch in DFA pass
- --EXTENSIONS--
- opcache
- --FILE--
- <?php
- function test($a) {
- // Just some dead code...
- if (strpos("foo", "foo") !== 0) {
- echo "Foo";
- }
- $x = $a === null;
- if ($x) {
- var_dump($x);
- }
- }
- test(null);
- ?>
- --EXPECT--
- bool(true)
|