Thanks!
Nuno

----- Original Message ----- From: "Xinchen Hui" <[email protected]>
To: <[email protected]>
Sent: Saturday, April 21, 2012 2:31 AM
Subject: [PHP-CVS] com php-src: Make css string constant: sapi/cli/php_cli_server.c


Commit:    b999e91f5bd0f366d67f18badc02c910729e8a08
Author: Xinchen Hui <[email protected]> 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" \


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to