1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00
Files
archived-php-src/ext/opcache/tests/jit/reg_alloc_013.phpt
Daniil Gentili 2ca142ecd8 Improve jit tests
Closes GH-12425
2023-11-14 20:09:27 +01:00

19 lines
327 B
PHP

--TEST--
Register Alloction 013: Division by zero
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=64M
--FILE--
<?php
function foo() {
$j++;
$j++ % $j -= $a % $a = $j;
}
foo();
?>
DONE
--EXPECTF--
Warning: Undefined variable $j in %sreg_alloc_013.php on line 3
DONE