Lines Matching refs:get_headers
2 Test get_headers() function : error conditions - wrong number of args
8 /* Prototype : proto array get_headers(string url[, int format[, resource $context]])
14 echo "*** Testing get_headers() : error conditions ***\n";
17 echo "\n-- Testing get_headers() function with Zero arguments --\n";
18 var_dump( get_headers() );
20 //Test get_headers with one more than the expected number of arguments
21 echo "\n-- Testing get_headers() function with more than expected no. of arguments --\n";
26 var_dump( get_headers($url, $format, $context, $extra_arg) );
31 *** Testing get_headers() : error conditions ***
33 -- Testing get_headers() function with Zero arguments --
35 Warning: get_headers() expects at least 1 parameter, 0 given in %s on line 12
38 -- Testing get_headers() function with more than expected no. of arguments --
40 Warning: get_headers() expects at most 3 parameters, 4 given in %s on line 20