Skip to content

Commit 9493ebb

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
2 parents 1df3099 + 6e23f2b commit 9493ebb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ext/opcache/tests/jmpz_jmp_elim.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Edge-cases in elimination of JMPZ JMP with same target
3+
--FILE--
4+
<?php
5+
6+
$foo = "foo";
7+
if ($foo . "bar") { goto label; }
8+
label:
9+
if ($undef) { goto label2; }
10+
label2:
11+
echo "done\n";
12+
13+
?>
14+
--EXPECTF--
15+
Notice: Undefined variable: undef in %s on line %d
16+
done

0 commit comments

Comments
 (0)