1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00
Files
2024-01-15 09:39:13 +01:00

22 lines
409 B
PHP

--TEST--
JIT MOD: 007
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.protect_memory=1
--FILE--
<?php
function test($a) {
for(;$a < -2;) {
$n % $n = $a + $a;
}
}
test(null);
?>
--EXPECTF--
Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %smod_007.php:4
Stack trace:
#0 %smod_007.php(7): test(NULL)
#1 {main}
thrown in %smod_007.php on line 4