mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
13 lines
243 B
PHP
13 lines
243 B
PHP
--TEST--
|
|
GH-14775: Range negative step overflow
|
|
--FILE--
|
|
<?php
|
|
$var = -PHP_INT_MAX - 1;
|
|
try {
|
|
range($var,1,$var);
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . PHP_EOL;
|
|
}
|
|
--EXPECTF--
|
|
range(): Argument #3 ($step) must be greater than %s
|