summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/range_bug70239_2.phpt
blob: c9396b3cb4dc1fad9478296836e61a28da33d532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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===