File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ static php_cli_server_http_reponse_status_code_pair status_map[] = {
246
246
247
247
static php_cli_server_http_reponse_status_code_pair template_map [] = {
248
248
{ 400 , "<h1>%s</h1><p>Your browser sent a request that this server could not understand.</p>" },
249
- { 404 , "<h1>%s</h1><p>The requested resource %s was not found on this server.</p>" },
249
+ { 404 , "<h1>%s</h1><p>The requested resource <code class=\"url\">%s</code> was not found on this server.</p>" },
250
250
{ 500 , "<h1>%s</h1><p>The server is temporarily unavailable.</p>" },
251
251
{ 501 , "<h1>%s</h1><p>Request method not supported.</p>" }
252
252
};
@@ -283,8 +283,10 @@ ZEND_DECLARE_MODULE_GLOBALS(cli_server);
283
283
* copied from ext/standard/info.c
284
284
*/
285
285
static const char php_cli_server_css [] = "<style>\n" \
286
- "body { background-color: #ffffff; color: #000000; }\n" \
287
- "h1 { font-family: sans-serif; font-size: 150%; background-color: #9999cc; font-weight: bold; color: #000000; margin-top: 0;}\n" \
286
+ "body { background-color: #fcfcfc; color: #333333; margin: 0; padding:0; }\n" \
287
+ "h1 { font-size: 1.5em; font-weight: normal; background-color: #9999cc; min-height:2em; line-height:2em; border-bottom: 1px inset black; margin: 0; }\n" \
288
+ "h1, p { padding-left: 10px; }\n" \
289
+ "code.url { background-color: #eeeeee; font-family:monospace; padding:0 2px;}\n" \
288
290
"</style>\n" ;
289
291
/* }}} */
290
292
Original file line number Diff line number Diff line change @@ -88,21 +88,21 @@ Content-Type: text/html; charset=UTF-8
88
88
Content-Length: %d
89
89
90
90
<!doctype html><html><head><title>404 Not Found</title><style>AAA</style>
91
- </head><body><h1>Not Found</h1><p>The requested resource / was not found on this server.</p></body></html>
91
+ </head><body><h1>Not Found</h1><p>The requested resource <code class="url">/</code> was not found on this server.</p></body></html>
92
92
HTTP/1.1 404 Not Found
93
93
Host: %s
94
94
Connection: close
95
95
Content-Type: text/html; charset=UTF-8
96
96
Content-Length: %d
97
97
98
98
<!doctype html><html><head><title>404 Not Found</title><style>AAA</style>
99
- </head><body><h1>Not Found</h1><p>The requested resource /main/style.css was not found on this server.</p></body></html>
99
+ </head><body><h1>Not Found</h1><p>The requested resource <code class="url"> /main/style.css</code> was not found on this server.</p></body></html>
100
100
HTTP/1.1 404 Not Found
101
101
Host: %s
102
102
Connection: close
103
103
Content-Type: text/html; charset=UTF-8
104
104
Content-Length: %d
105
105
106
106
<!doctype html><html><head><title>404 Not Found</title><style>AAA</style>
107
- </head><body><h1>Not Found</h1><p>The requested resource /main/foo/bar was not found on this server.</p></body></html>
107
+ </head><body><h1>Not Found</h1><p>The requested resource <code class="url"> /main/foo/bar</code> was not found on this server.</p></body></html>
108
108
Original file line number Diff line number Diff line change @@ -77,4 +77,4 @@ Content-Type: %s
77
77
Content-Length: %d
78
78
79
79
<!doctype html><html><head><title>404 Not Found</title><style>AAA</style>
80
- </head><body><h1>Not Found</h1><p>The requested resource /main/no-exists.php was not found on this server.</p></body></html>
80
+ </head><body><h1>Not Found</h1><p>The requested resource <code class="url"> /main/no-exists.php</code> was not found on this server.</p></body></html>
You can’t perform that action at this time.
0 commit comments