Lines Matching refs:get_headers
2 Test get_headers() function: wrong type for argument format
8 /* Prototype : proto array get_headers(string url[, int format])
14 echo "*** Testing get_headers() : error conditions ***\n";
18 echo "\n-- Testing get_headers() function with format argument as type string --\n";
19 var_dump( get_headers($url, "#PHPTestFest2009 Norway") );
22 echo "\n-- Testing get_headers() function with format argument as type array --\n";
23 var_dump( get_headers($url, array()) );
31 echo "\n-- Testing get_headers() function with format argument as type object --\n";
32 var_dump( get_headers($url, $object) );
38 *** Testing get_headers() : error conditions ***
40 -- Testing get_headers() function with format argument as type string --
42 Warning: get_headers() expects parameter 2 to be integer, string given in %s on line 13
45 -- Testing get_headers() function with format argument as type array --
47 Warning: get_headers() expects parameter 2 to be integer, array given in %s on line 17
50 -- Testing get_headers() function with format argument as type object --
52 Warning: get_headers() expects parameter 2 to be integer, object given in %s on line 26