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

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