diff --git a/NEWS b/NEWS index ea08065ce01..3cf7c303fcc 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ PHP NEWS . Extended --ini to print INI settings changed from the builtin default. (timwolla) . Drop support for -z CLI/CGI flag. (nielsdos) + . Fixed GH-17956 - development server 404 page does not adapt to mobiles. + (pascalchevrel) - COM: . Fixed property access of PHP objects wrapped in variant. (cmb) diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 9e8d8d1b8a4..b7e3e5fa1be 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -2026,7 +2026,7 @@ static zend_result php_cli_server_send_error_page(php_cli_server *server, php_cl escaped_request_uri = php_escape_html_entities_ex((const unsigned char *) ZSTR_VAL(client->request.request_uri), ZSTR_LEN(client->request.request_uri), 0, ENT_QUOTES, NULL, /* double_encode */ 0, /* quiet */ 0); { - static const char prologue_template[] = "
The requested resource /
was not found on this server.
The requested resource /main/style.css
was not found on this server.
Requested method not allowed.
HTTP/1.1 405 Method Not Allowed Host: %s @@ -172,7 +172,7 @@ Content-Type: text/html; charset=UTF-8 Content-Length: %d Allow: GET, HEAD, POST -Requested method not allowed.
HTTP/1.1 405 Method Not Allowed Host: %s @@ -183,5 +183,5 @@ Content-Type: text/html; charset=UTF-8 Content-Length: %d Allow: GET, HEAD, POST -Requested method not allowed.