Skip to content

Commit 82bb169

Browse files
committed
Tracing JIT: Fixed incorrect deoptimization info
Fixes oss-fuzz #44294
1 parent 29fe06f commit 82bb169

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)