Skip to content

Commit 9ca9394

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Simplfy test case
2 parents 275fa53 + ab8782d commit 9ca9394

File tree

1 file changed

+9
-26
lines changed

1 file changed

+9
-26
lines changed

ext/opcache/tests/bug77743.phpt

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,16 @@
22
Bug #77743: Incorrect pi node insertion for jmpznz with identical successors
33
--FILE--
44
<?php
5-
class Toto
6-
{
7-
public function process1()
8-
{
9-
$keep_products = [1, 2, 3, 4];
10-
foreach ($keep_products as $k => $v)
11-
{
12-
$id_country = myRet(45);
13-
if ($id_country === false && false)
14-
{
15-
}
165

17-
var_dump($id_country === false);
18-
}
19-
}
6+
function buggy($a) {
7+
$id_country = $a;
8+
if ($id_country === false) {
9+
if (true) {
10+
}
11+
}
12+
var_dump($id_country);
2013
}
2114

22-
function myRet($x){
23-
return $x;
24-
}
25-
26-
$toto = new Toto();
27-
$toto->process1();
28-
29-
?>
15+
buggy(42);
3016
--EXPECT--
31-
bool(false)
32-
bool(false)
33-
bool(false)
34-
bool(false)
17+
int(42)

0 commit comments

Comments
 (0)