diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-03-18 14:59:08 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-03-18 14:59:08 +0100 |
commit | 9ca9394f5b7f88450c12d1c22f16e2541ed87a7b (patch) | |
tree | 3ffd9d7c3da1868fdb7dbc167778ea0a4bcf747e | |
parent | 275fa5356442d4b387cc3401aee276f5a3b452b0 (diff) | |
parent | ab8782d1e69b05cca2584c16c1dadae67351acfa (diff) | |
download | php-git-9ca9394f5b7f88450c12d1c22f16e2541ed87a7b.tar.gz |
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Simplfy test case
-rw-r--r-- | ext/opcache/tests/bug77743.phpt | 35 |
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) |