TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
326 B
17 lines
326 B
--TEST--
|
|
GH-14775: Range negative step overflow
|
|
--SKIPIF--
|
|
<?php
|
|
if (true) die("skip AOT does not support this test pattern");
|
|
?>
|
|
|
|
--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
|
|
|