Lines Matching refs:gethostbyaddr
2 Test gethostbyaddr() function : error conditions
5 /* Prototype : proto string gethostbyaddr(string ip_address)
12 echo "Testing gethostbyaddr : error conditions\n";
15 echo "\n-- Testing gethostbyaddr function with Zero arguments --\n";
16 var_dump( gethostbyaddr() );
18 //Test gethostbyaddr with one more than the expected number of arguments
19 echo "\n-- Testing gethostbyaddr function with more than expected no. of arguments --\n";
22 var_dump( gethostbyaddr($ip_address, $extra_arg) );
24 echo "\n-- Testing gethostbyaddr function with invalid addresses --\n";
27 var_dump( gethostbyaddr($ip_address) );
30 var_dump( gethostbyaddr($ip_address) );
33 var_dump( gethostbyaddr($ip_address) );
38 Testing gethostbyaddr : error conditions
40 -- Testing gethostbyaddr function with Zero arguments --
42 Warning: gethostbyaddr\(\) expects exactly 1 parameter, 0 given in .* on line \d+
45 -- Testing gethostbyaddr function with more than expected no. of arguments --
47 Warning: gethostbyaddr\(\) expects exactly 1 parameter, 2 given in .* on line \d+
50 -- Testing gethostbyaddr function with invalid addresses --
52 Warning: gethostbyaddr\(\): Address is not (in a.b.c.d form|a valid IPv4 or IPv6 address) in .* on …
55 Warning: gethostbyaddr\(\): Address is not (in a.b.c.d form|a valid IPv4 or IPv6 address) in .* on …
58 Warning: gethostbyaddr\(\): Address is not (in a.b.c.d form|a valid IPv4 or IPv6 address) in .* on …