From: Julien Pauli Date: Wed, 23 Dec 2015 10:31:18 +0000 (+0100) Subject: Added support for HTTP 451 X-Git-Tag: php-7.0.3RC1~106^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea12ff149cdcfe04531c7114cf7a3b8e68cd074c;p=php Added support for HTTP 451 --- diff --git a/NEWS b/NEWS index 78b7437165..e460e3438e 100644 --- a/NEWS +++ b/NEWS @@ -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). diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 1c0b489f28..40b42855f4 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -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"}, diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 4ed0efb820..87d19c29a1 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -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" }, diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c index 8b1503d6f0..19a902e2f7 100644 --- a/sapi/fpm/fpm/fpm_main.c +++ b/sapi/fpm/fpm/fpm_main.c @@ -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"},