com php-src: Simplfy test case: ext/opcache/tests/bug77743.phpt

From: Date: Mon, 18 Mar 2019 11:28:23 +0000
Subject: com php-src: Simplfy test case: ext/opcache/tests/bug77743.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105212@lists.php.net to get a copy of this message
Commit: e072537e7f7dfd1de0a10172b80dba79a525dc72 Author: Xinchen Hui <laruence@gmail.com> Mon, 18 Mar 2019 19:28:23 +0800 Parents: b3a669bec1e55ac0e58f84a620efe377f36ab1b3 Branches: PHP-7.2 PHP-7.3 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e072537e7f7dfd1de0a10172b80dba79a525dc72 Log: Simplfy test case (I was working on the same bug while nikic committed the similar fix Changed paths: M ext/opcache/tests/bug77743.phpt Diff: diff --git a/ext/opcache/tests/bug77743.phpt b/ext/opcache/tests/bug77743.phpt index 61627b1..95f8349 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)

« previous php.cvs (#105212) next »