Skip to content

Commit

Permalink
Merge branch 'PHP-7.3' into PHP-7.4
Browse files Browse the repository at this point in the history
* PHP-7.3:
  Simplfy test case
  • Loading branch information
cmb69 committed Mar 18, 2019
2 parents 275fa53 + ab8782d commit 9ca9394
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions ext/opcache/tests/bug77743.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 9ca9394

Please sign in to comment.