php-8.0.30-src/ext/standard/tests/array/range_bug70239_3.phpt

13 lines
294 B
PHP

--TEST--
Bug #70239 Creating a huge array doesn't result in exhausted, but segfault, var 4
--FILE--
<?php
try {
var_dump(range(PHP_INT_MIN, 0));
} catch (\ValueError $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECTF--
The supplied range exceeds the maximum array size: start=-%d end=0