1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/standard/tests/array/range_bug70239_1.phpt
George Peter Banyard 5fbd49f9ab Convert Errors to ValueErrors
Closes GH-4930
2019-12-05 14:22:54 +01:00

13 lines
288 B
PHP

--TEST--
Bug #70239 Creating a huge array doesn't result in exhausted, but segfault, var 2
--FILE--
<?php
try {
range(pow(2.0, 100000000), pow(2.0, 100000000) + 1);
} catch (\ValueError $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECT--
Invalid range supplied: start=inf end=inf