header('Location: http://example.com/');
?>
--EXPECTHEADERS--
-Status: 302 Moved Temporarily
+Status: 302 Found
Location: http://example.com/
--EXPECT--
header('Location: http://example.com/');
?>
--EXPECTHEADERS--
-Status: 302 Moved Temporarily
+Status: 302 Found
Location: http://example.com/
--EXPECT--
{ 505, "HTTP Version Not Supported" },
{ 511, "Network Authentication Required" },
/* to allow search with while() loop */
- { 0, NULL }
+ { 1000, NULL }
};
-#endif HTTP_STATUS_CODES_H
+#endif /* HTTP_STATUS_CODES_H */
static int status_comp(const void *a, const void *b) /* {{{ */
{
- const php_cli_server_http_response_status_code_pair *pa = (const php_cli_server_http_response_status_code_pair *) a;
- const php_cli_server_http_response_status_code_pair *pb = (const php_cli_server_http_response_status_code_pair *) b;
+ const http_response_status_code_pair *pa = (const http_response_status_code_pair *) a;
+ const http_response_status_code_pair *pb = (const http_response_status_code_pair *) b;
if (pa->code < pb->code) {
return -1;