summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/range_bug70239_2.phpt
blob: 192644cd0fd99e3c0f31e6b51cfdfcb3168825f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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";
}
?>
--EXPECTF--
The supplied range exceeds the maximum array size: start=0 end=%d