Lines Matching refs:usleep
2 Test usleep() function : error conditions
5 /* Prototype : void usleep ( int $micro_seconds )
12 echo "*** Testing usleep() : error conditions ***\n";
14 echo "\n-- Testing usleep() function with zero arguments --\n";
15 var_dump( usleep() );
17 echo "\n-- Testing usleep() function with more than expected no. of arguments --\n";
20 var_dump( usleep($seconds, $extra_arg) );
22 echo "\n-- Testing usleep() function with negative interval --\n";
24 var_dump( usleep($seconds) );
29 *** Testing usleep() : error conditions ***
31 -- Testing usleep() function with zero arguments --
33 Warning: usleep() expects exactly 1 parameter, 0 given in %s on line %d
36 -- Testing usleep() function with more than expected no. of arguments --
38 Warning: usleep() expects exactly 1 parameter, 2 given in %s on line %d
41 -- Testing usleep() function with negative interval --
43 Warning: usleep(): Number of microseconds must be greater than or equal to 0 in %s on line %d