xref: /PHP-8.4/ext/opcache/tests/jit/mod_008.phpt (revision c16ad918)
1--TEST--
2JIT MOD: 008
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--FILE--
9<?php
10function foo() {
11    foo(1 / 0 % 0);
12};
13@foo();
14?>
15--EXPECTF--
16Fatal error: Uncaught DivisionByZeroError: Division by zero in %smod_008.php:3
17Stack trace:
18#0 %smod_008.php(5): foo()
19#1 {main}
20  thrown in %smod_008.php on line 3
21