mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
c16ad918ba
https://wiki.php.net/rfc/jit_config_defaults Closes GH-12678
19 lines
413 B
PHP
19 lines
413 B
PHP
--TEST--
|
|
Register Alloction 021: TMP variables captured by live_ranges have to be stored
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
--FILE--
|
|
<?php
|
|
$a = 0;
|
|
for($i = 5; $i >= 0; $i--) {
|
|
$a = 1 + ++$a - 5 % $i;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %sreg_alloc_021.php:4
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sreg_alloc_021.php on line 4
|