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

15 lines
310 B
PHP

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