diff options
author | Xinchen Hui <laruence@php.net> | 2012-10-10 17:23:30 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2012-10-10 17:23:30 +0800 |
commit | ea441bd08dc1d9f5bd167f3f495321c5225909b6 (patch) | |
tree | feac5ca1bba99d167870cf8b6dda42187ec515c5 /sapi/cli/tests | |
parent | 69a4301f6c235fb4535bdd31a9de5f730f07574d (diff) | |
download | php-git-ea441bd08dc1d9f5bd167f3f495321c5225909b6.tar.gz |
Implemented FR #63242 (Default error page in PHP built-in web server uses outdated html/css)
Diffstat (limited to 'sapi/cli/tests')
-rw-r--r-- | sapi/cli/tests/php_cli_server_013.phpt | 18 | ||||
-rw-r--r-- | sapi/cli/tests/php_cli_server_014.phpt | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/sapi/cli/tests/php_cli_server_013.phpt b/sapi/cli/tests/php_cli_server_013.phpt index 18b7375b3f..570798a880 100644 --- a/sapi/cli/tests/php_cli_server_013.phpt +++ b/sapi/cli/tests/php_cli_server_013.phpt @@ -33,7 +33,7 @@ HEADER } } -echo preg_replace("/<style type=\"text\/css\">(.*?)<\/style>/s", "<style type=\"text/css\">AAA</style>", $output), "\n"; +echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; fclose($fp); @@ -55,7 +55,7 @@ HEADER } } -echo preg_replace("/<style type=\"text\/css\">(.*?)<\/style>/s", "<style type=\"text/css\">AAA</style>", $output), "\n"; +echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; fclose($fp); $output = ''; @@ -76,7 +76,7 @@ HEADER } } -echo preg_replace("/<style type=\"text\/css\">(.*?)<\/style>/s", "<style type=\"text/css\">AAA</style>", $output), "\n"; +echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; fclose($fp); ?> --EXPECTF-- @@ -87,22 +87,22 @@ Connection: close Content-Type: text/html; charset=UTF-8 Content-Length: %d -<html><head><title>404 Not Found</title><style type="text/css">AAA</style> -</head><body><h1 class="h">Not Found</h1><p>The requested resource / was not found on this server.</p></body></html> +<!doctype html><html><head><title>404 Not Found</title><style>AAA</style> +</head><body><h1>Not Found</h1><p>The requested resource / was not found on this server.</p></body></html> HTTP/1.1 404 Not Found Host: %s Connection: close Content-Type: text/html; charset=UTF-8 Content-Length: %d -<html><head><title>404 Not Found</title><style type="text/css">AAA</style> -</head><body><h1 class="h">Not Found</h1><p>The requested resource /main/style.css was not found on this server.</p></body></html> +<!doctype html><html><head><title>404 Not Found</title><style>AAA</style> +</head><body><h1>Not Found</h1><p>The requested resource /main/style.css was not found on this server.</p></body></html> HTTP/1.1 404 Not Found Host: %s Connection: close Content-Type: text/html; charset=UTF-8 Content-Length: %d -<html><head><title>404 Not Found</title><style type="text/css">AAA</style> -</head><body><h1 class="h">Not Found</h1><p>The requested resource /main/foo/bar was not found on this server.</p></body></html> +<!doctype html><html><head><title>404 Not Found</title><style>AAA</style> +</head><body><h1>Not Found</h1><p>The requested resource /main/foo/bar was not found on this server.</p></body></html> diff --git a/sapi/cli/tests/php_cli_server_014.phpt b/sapi/cli/tests/php_cli_server_014.phpt index 2eca8706bb..f8a9905613 100644 --- a/sapi/cli/tests/php_cli_server_014.phpt +++ b/sapi/cli/tests/php_cli_server_014.phpt @@ -57,7 +57,7 @@ HEADER } } -echo preg_replace("/<style type=\"text\/css\">(.*?)<\/style>/s", "<style type=\"text/css\">AAA</style>", $output), "\n"; +echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; fclose($fp); ?> @@ -76,5 +76,5 @@ Connection: close Content-Type: %s Content-Length: %d -<html><head><title>404 Not Found</title><style type="text/css">AAA</style> -</head><body><h1 class="h">Not Found</h1><p>The requested resource /main/no-exists.php was not found on this server.</p></body></html> +<!doctype html><html><head><title>404 Not Found</title><style>AAA</style> +</head><body><h1>Not Found</h1><p>The requested resource /main/no-exists.php was not found on this server.</p></body></html> |