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.
19 lines
514 B
19 lines
514 B
--TEST--
|
|
Bug #60222 (time_nanosleep() does validate input params)
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
time_nanosleep(-1, 0);
|
|
} catch (ValueError $exception) {
|
|
echo $exception->getMessage() . "\n";
|
|
}
|
|
|
|
try {
|
|
time_nanosleep(0, -1);
|
|
} catch (ValueError $exception) {
|
|
echo $exception->getMessage() . "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
time_nanosleep(): Argument #1 ($seconds) must be greater than or equal to 0
|
|
time_nanosleep(): Argument #2 ($nanoseconds) must be greater than or equal to 0
|
|
|