com php-src: Added support for HTTP 451: NEWS sapi/cgi/cgi_ma in.c sapi/cli/php_cli_server.c sapi/fpm/fpm/fpm_m ain.c
| From: | JulienPauli | Date: | Wed, 23 Dec 2015 10:31:18 +0000 |
| Subject: | com php-src: Added support for HTTP 451: NEWS sapi/cgi/cgi_ma in.c sapi/cli/php_cli_server.c sapi/fpm/fpm/fpm_m ain.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90410@lists.php.net to get a copy of this message | ||
Commit: ea12ff149cdcfe04531c7114cf7a3b8e68cd074c
Author: Julien Pauli <jpauli@php.net> Wed, 23 Dec 2015 11:31:18 +0100
Parents: a57a08e79133aa37372c9c997e17f63e479e792d
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ea12ff149cdcfe04531c7114cf7a3b8e68cd074c
Log:
Added support for HTTP 451
Changed paths:
M NEWS
M sapi/cgi/cgi_main.c
M sapi/cli/php_cli_server.c
M sapi/fpm/fpm/fpm_main.c
Diff:
diff --git a/NEWS b/NEWS
index 78b7437..e460e34 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 1c0b489..40b4285 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 4ed0efb..87d19c2 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 8b1503d..19a902e 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"},