summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/range_bug70239_2.phpt
blob: 76ed638669f4c9277998cb28b9c684e7ff42916d (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #70239 Creating a huge array doesn't result in exhausted, but segfault, var 3
--FILE--
<?php
var_dump(range(0, PHP_INT_MAX));
?>
===DONE===
--EXPECTF--
Warning: range(): The supplied range exceeds the maximum array size: start=0 end=%d in %srange_bug70239_2.php on line %d
bool(false)
===DONE===