Lines Matching refs:fsockopen
2 Test fsockopen() function : error conditions
5 /* Prototype : proto resource fsockopen(string hostname, int port [, int errno [, string errstr [,…
12 echo "*** Testing fsockopen() : basic error conditions ***\n";
15 echo "\n-- Testing fsockopen() function with more than expected no. of arguments --\n";
22 var_dump( fsockopen($hostname, $port, $errno, $errstr, $timeout, $extra_arg) );
26 echo "\n-- Testing fsockopen() function with less than expected no. of arguments --\n";
27 var_dump( fsockopen() );
35 var_dump( fsockopen($hostname, $port, $errno, $errstr, $timeout) );
44 var_dump( fsockopen($hostname, $port, $errno, $errstr, $timeout) );
50 *** Testing fsockopen() : basic error conditions ***
52 -- Testing fsockopen() function with more than expected no. of arguments --
54 Warning: fsockopen() expects at most 5 parameters, 6 given in %s on line %d
59 -- Testing fsockopen() function with less than expected no. of arguments --
61 Warning: fsockopen() expects at least 1 parameter, 0 given in %s on line %d
66 Warning: fsockopen(): unable to connect to tcp://127.0.0.1:31337 (%a) in %s on line %d
72 Warning: fsockopen(): unable to connect to invalid://127.0.0.1:31337 (Unable to find the socket tra…