1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Files
archived-php-src/ext/opcache/tests/jit/reg_alloc_017.phpt
T
Dmitry Stogov ed652a514f Fix register allocation (missing store)
This fixes oss-fuzz #52022
2022-10-03 17:08:11 +03:00

22 lines
333 B
PHP

--TEST--
Register Alloction 017: Missing store
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
function test() {
for($i = 0; $i < 10; $i++) {
$a = $b = $a + !$a = !$a;
$c = $c = $a;
$c % $a;
}
}
@test();
?>
DONE
--EXPECT--
DONE