com php-src: Make css string constant: sapi/cli/php_cli_ser ver.c
| From: | Xinchen Hui | Date: | Sat, 21 Apr 2012 01:31:00 +0000 |
| Subject: | com php-src: Make css string constant: sapi/cli/php_cli_ser ver.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68846@lists.php.net to get a copy of this message | ||
Commit: b999e91f5bd0f366d67f18badc02c910729e8a08
Author: Xinchen Hui <laruence@php.net> Sat, 21 Apr 2012 09:31:00 +0800
Parents: da85337d13075885f165eeed820181be20d397b9
Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b999e91f5bd0f366d67f18badc02c910729e8a08
Log:
Make css string constant
Changed paths:
M sapi/cli/php_cli_server.c
Diff:
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 105fd60..a3ed390 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -276,7 +276,7 @@ ZEND_DECLARE_MODULE_GLOBALS(cli_server);
/* {{{ static char php_cli_server_css[]
* copied from ext/standard/info.c
*/
-static char php_cli_server_css[] = "<style type=\"text/css\">\n" \
+static const char php_cli_server_css[] = "<style type=\"text/css\">\n" \
"body {background-color: #ffffff; color: #000000;}\n" \
"body, td, th, h1, h2 {font-family: sans-serif;}\n" \
".center {text-align: center;}\n" \