mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
ae77c7b057
Turns out we do need to return FAILURE here on div by zero exception. Use a three-way return value from div_function_base. Fixes oss-fuzz #25975.
12 lines
201 B
PHP
12 lines
201 B
PHP
--TEST--
|
|
Division by zero in static
|
|
--FILE--
|
|
<?php
|
|
static $a = 1/0;
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught DivisionByZeroError: Division by zero in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|