mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
bb6f374048
Closes GH-5198
15 lines
275 B
PHP
15 lines
275 B
PHP
--TEST--
|
|
Test sleep() function : error conditions
|
|
--FILE--
|
|
<?php
|
|
|
|
sleep(-10);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught ValueError: sleep(): Argument #1 ($seconds) must be greater than or equal to 0 in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): sleep(-10)
|
|
#1 {main}
|
|
thrown in %s on line %d
|