1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/opcache/tests/jit/mod_008.phpt
Dmitry Stogov 9f5a4c3799 Fixed code generation for MOD
Fixes oss-fuzz #63570
2023-10-25 13:14:34 +03:00

22 lines
396 B
PHP

--TEST--
JIT MOD: 008
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--FILE--
<?php
function foo() {
foo(1 / 0 % 0);
};
@foo();
?>
--EXPECTF--
Fatal error: Uncaught DivisionByZeroError: Division by zero in %smod_008.php:3
Stack trace:
#0 %smod_008.php(5): foo()
#1 {main}
thrown in %smod_008.php on line 3