1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/ext/standard/tests/array/range_bug70239_1.phpt
2019-08-21 18:05:08 +02:00

15 lines
305 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 (\Error $e) {
echo $e->getMessage() . "\n";
}
?>
===DONE===
--EXPECT--
Invalid range supplied: start=inf end=inf
===DONE===