summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2019-03-18 19:30:11 +0800
committerXinchen Hui <laruence@gmail.com>2019-03-18 19:30:11 +0800
commitab8782d1e69b05cca2584c16c1dadae67351acfa (patch)
treea31b72e5ad23fbfe7ca1f417f4e0d8eccb7c6118
parent763a7b8ca3127d694fd55cc2df947649c22c3b4c (diff)
parente072537e7f7dfd1de0a10172b80dba79a525dc72 (diff)
downloadphp-git-ab8782d1e69b05cca2584c16c1dadae67351acfa.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Simplfy test case
-rw-r--r--ext/opcache/tests/bug77743.phpt35
1 files changed, 9 insertions, 26 deletions
diff --git a/ext/opcache/tests/bug77743.phpt b/ext/opcache/tests/bug77743.phpt
index 61627b198d..95f8349472 100644
--- a/ext/opcache/tests/bug77743.phpt
+++ b/ext/opcache/tests/bug77743.phpt
@@ -2,33 +2,16 @@
Bug #77743: Incorrect pi node insertion for jmpznz with identical successors
--FILE--
<?php
-class Toto
-{
- public function process1()
- {
- $keep_products = [1, 2, 3, 4];
- foreach ($keep_products as $k => $v)
- {
- $id_country = myRet(45);
- if ($id_country === false && false)
- {
- }
- var_dump($id_country === false);
- }
- }
+function buggy($a) {
+ $id_country = $a;
+ if ($id_country === false) {
+ if (true) {
+ }
+ }
+ var_dump($id_country);
}
-function myRet($x){
- return $x;
-}
-
-$toto = new Toto();
-$toto->process1();
-
-?>
+buggy(42);
--EXPECT--
-bool(false)
-bool(false)
-bool(false)
-bool(false)
+int(42)