com php-src: Forgot to commit test file...: ext/opcache/tests/j mpz_jmp_elim.phpt
| From: | Nikita Popov | Date: | Mon, 10 Apr 2017 20:26:14 +0000 |
| Subject: | com php-src: Forgot to commit test file...: ext/opcache/tests/j mpz_jmp_elim.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97535@lists.php.net to get a copy of this message | ||
Commit: 6e23f2bceb0826e65eb8129fd94c61b7b3a44da7
Author: Nikita Popov <nikita.ppv@gmail.com> Mon, 10 Apr 2017 22:26:14 +0200
Parents: 6f950e83eb1467521853d6628f514d2eebef7ebb
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6e23f2bceb0826e65eb8129fd94c61b7b3a44da7
Log:
Forgot to commit test file...
Changed paths:
A ext/opcache/tests/jmpz_jmp_elim.phpt
Diff:
diff --git a/ext/opcache/tests/jmpz_jmp_elim.phpt b/ext/opcache/tests/jmpz_jmp_elim.phpt
new file mode 100644
index 0000000..2749b41
--- /dev/null
+++ b/ext/opcache/tests/jmpz_jmp_elim.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Edge-cases in elimination of JMPZ JMP with same target
+--FILE--
+<?php
+
+$foo = "foo";
+if ($foo . "bar") { goto label; }
+label:
+if ($undef) { goto label2; }
+label2:
+echo "done\n";
+
+?>
+--EXPECTF--
+Notice: Undefined variable: undef in %s on line %d
+done