Skip to content

Commit 5a8f242

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Tracing JIT: Fixed incorrect deoptimization info
2 parents 49087a6 + 82bb169 commit 5a8f242

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
Register Alloction 008: Incorrect deoptimization code
3+
--INI--
4+
opcache.enable=1
5+
opcache.enable_cli=1
6+
opcache.file_update_protection=0
7+
opcache.jit_buffer_size=1M
8+
--FILE--
9+
<?php
10+
function foo($a) {
11+
for($i=0; $i<1; $i++)
12+
$a=$y / $a = $a + $a != ($a);
13+
}
14+
foo(7);
15+
?>
16+
--EXPECTF--
17+
Warning: Undefined variable $y in %sreg_alloc_008.php on line 4

0 commit comments

Comments
 (0)