Skip to content

Commit ce7c469

Browse files
committed
Update test expectation due to order of optimization
1 parent 3a07402 commit ce7c469

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎ext/opcache/tests/opt/sccp_026.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function test($var) {
1515
return;
1616
}
1717

18-
var_dump($username);
18+
var_dump($username);
1919
}
2020
?>
2121
--EXPECTF--
@@ -28,8 +28,8 @@ test: ; (lines=9, args=1, vars=2, tmps=1)
2828
; (after optimizer)
2929
; %s:2-8
3030
L0 (2): CV0($var) = RECV 1
31-
L1 (3): T2 = TYPE_CHECK (string) CV0($var)
32-
L2 (3): JMPZ T2 L4
31+
L1 (3): T2 = TYPE_CHECK TYPE [null, bool, long, double, array, object, resource] CV0($var)
32+
L2 (3): JMPNZ T2 L4
3333
L3 (3): JMP L5
3434
L4 (4): RETURN null
3535
L5 (7): INIT_FCALL 1 %d string("var_dump")

0 commit comments

Comments
 (0)