mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
c16ad918ba
https://wiki.php.net/rfc/jit_config_defaults Closes GH-12678
22 lines
409 B
PHP
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
|