Lines Matching refs:stream_set_timeout

2 Test stream_set_timeout() function : error conditions
5 /* Prototype : proto bool stream_set_timeout(resource stream, int seconds, int microseconds)
11 echo "*** Testing stream_set_timeout() : error conditions ***\n";
13 //Test stream_set_timeout with one more than the expected number of arguments
14 echo "\n-- Testing stream_set_timeout() function with more than expected no. of arguments --\n";
30 var_dump( stream_set_timeout($client, $seconds, $microseconds, $extra_arg) );
32 // Testing stream_set_timeout with one less than the expected number of arguments
33 echo "\n-- Testing stream_set_timeout() function with less than expected no. of arguments --\n";
36 var_dump( stream_set_timeout($client) );
39 echo "\n-- Testing stream_set_timeout() function with a closed socket --\n";
41 var_dump( stream_set_timeout($client, $seconds) );
43 echo "\n-- Testing stream_set_timeout() function with an invalid stream --\n";
44 var_dump( stream_set_timeout($seconds, $seconds) );
46 echo "\n-- Testing stream_set_timeout() function with a stream that does not support timeouts --\n";
48 var_dump( stream_set_timeout($filestream, $seconds) );
56 *** Testing stream_set_timeout() : error conditions ***
58 -- Testing stream_set_timeout() function with more than expected no. of arguments --
60 Warning: stream_set_timeout() expects at most 3 parameters, 4 given in %s on line %d
63 -- Testing stream_set_timeout() function with less than expected no. of arguments --
65 Warning: stream_set_timeout() expects at least 2 parameters, 1 given in %s on line %d
68 -- Testing stream_set_timeout() function with a closed socket --
70 Warning: stream_set_timeout(): supplied resource is not a valid stream resource in %s on line %d
73 -- Testing stream_set_timeout() function with an invalid stream --
75 Warning: stream_set_timeout() expects parameter 1 to be resource, int given in %s on line %d
78 -- Testing stream_set_timeout() function with a stream that does not support timeouts --