mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
13 lines
290 B
PHP
13 lines
290 B
PHP
--TEST--
|
|
Bug #70239 Creating a huge array doesn't result in exhausted, but segfault, var 1
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
range(0, pow(2.0, 100000000));
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
range(): Argument #2 ($end) must be a finite number, INF provided
|