Skip to content

Commit

Permalink
Tracing JIT: Fixed incorrect deoptimization info
Browse files Browse the repository at this point in the history
Fixes oss-fuzz #44294
  • Loading branch information
dstogov committed Feb 11, 2022
1 parent 29fe06f commit 82bb169
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ext/opcache/tests/jit/reg_alloc_008.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--TEST--
Register Alloction 008: Incorrect deoptimization code
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
function foo($a) {
for($i=0; $i<1; $i++)
$a=$y / $a = $a + $a != ($a);
}
foo(7);
?>
--EXPECTF--
Warning: Undefined variable $y in %sreg_alloc_008.php on line 4

0 comments on commit 82bb169

Please sign in to comment.