Added support for HTTP 451

This commit is contained in:
Julien Pauli 2015-12-23 11:31:18 +01:00
parent a57a08e791
commit ea12ff149c
4 changed files with 4 additions and 0 deletions

1
NEWS
View file

@ -4,6 +4,7 @@ PHP NEWS
- Core:
. Fixed bug #71089 (No check to duplicate zend_extension). (Remi)
. Added support for new HTTP 451 code. (Julien)
- FTP:
. Implemented FR #55651 (Option to ignore the returned FTP PASV address).

View file

@ -387,6 +387,7 @@ static const http_error http_error_codes[] = {
{428, "Precondition Required"},
{429, "Too Many Requests"},
{431, "Request Header Fields Too Large"},
{451, "Unavailable For Legal Reasons"},
{500, "Internal Server Error"},
{501, "Not Implemented"},
{502, "Bad Gateway"},

View file

@ -246,6 +246,7 @@ static php_cli_server_http_response_status_code_pair status_map[] = {
{ 428, "Precondition Required" },
{ 429, "Too Many Requests" },
{ 431, "Request Header Fields Too Large" },
{ 451, "Unavailable For Legal Reasons"},
{ 500, "Internal Server Error" },
{ 501, "Not Implemented" },
{ 502, "Bad Gateway" },

View file

@ -379,6 +379,7 @@ static const http_error http_error_codes[] = {
{428, "Precondition Required"},
{429, "Too Many Requests"},
{431, "Request Header Fields Too Large"},
{451, "Unavailable For Legal Reasons"},
{500, "Internal Server Error"},
{501, "Not Implemented"},
{502, "Bad Gateway"},