1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00
Files
archived-php-src/ext/opcache/tests/jit/reg_alloc_009.phpt
Dmitry Stogov 0d6b173532 JIT: Fix missed type store
Fizes oss-fuzz #44376
2022-02-11 12:05:57 +03:00

25 lines
567 B
PHP

--TEST--
Register Alloction 009: Missing type store
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
function test() {
for(;; $a + $y[4][] = $y < $a + $a = $b = $a = + $y[] = 0.1) {
4 >> - $j++;
}
}
test();
?>
--EXPECTF--
Warning: Undefined variable $j in %sreg_alloc_009.php on line 4
Fatal error: Uncaught ArithmeticError: Bit shift by negative number in %sreg_alloc_009.php:4
Stack trace:
#0 %sreg_alloc_009.php(7): test()
#1 {main}
thrown in %sreg_alloc_009.php on line 4