summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/range_bug70239_3.phpt
blob: e49267bfe377ccbe1590df3c813194ede84d1a8b (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 4
--FILE--
<?php
try {
    var_dump(range(PHP_INT_MIN, 0));
} catch (\Error $e) {
    echo $e->getMessage() . "\n";
}
?>
===DONE===
--EXPECTF--
The supplied range exceeds the maximum array size: start=-%d end=0
===DONE===