]> granicus.if.org Git - php/commitdiff
Added support for HTTP 451
authorJulien Pauli <jpauli@php.net>
Wed, 23 Dec 2015 10:31:18 +0000 (11:31 +0100)
committerJulien Pauli <jpauli@php.net>
Wed, 23 Dec 2015 10:31:18 +0000 (11:31 +0100)
NEWS
sapi/cgi/cgi_main.c
sapi/cli/php_cli_server.c
sapi/fpm/fpm/fpm_main.c

diff --git a/NEWS b/NEWS
index 78b74371658b33e30c224641c500f69656ef5139..e460e3438eed310af27f0b54a82a9fb637d7d7a4 100644 (file)
--- 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).
index 1c0b489f28e902ab10b826b93f0c568bc26d6cb0..40b42855f4299a290f6aa142d68845cf5b5cff59 100644 (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"},
index 4ed0efb820f8f2048d5caae3523f6de2a9dc9db1..87d19c29a188cdd8f0d685595996f96fabe4693f 100644 (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" },
index 8b1503d6f00ccdd0248866d57a2f7dfad4239902..19a902e2f704c4c2fd4cd4a5ee22ab7742b9d0b3 100644 (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"},