johannes Tue Jan 23 15:47:28 2007 UTC
Modified files:
/php-src/ext/standard info.c
Log:
- Use utf-8 instead of utf8 as encoding to fix phpinfo()
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/info.c?r1=1.274&r2=1.275&diff_format=u
Index: php-src/ext/standard/info.c
diff -u php-src/ext/standard/info.c:1.274 php-src/ext/standard/info.c:1.275
--- php-src/ext/standard/info.c:1.274 Mon Jan 1 09:29:32 2007
+++ php-src/ext/standard/info.c Tue Jan 23 15:47:28 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.274 2007/01/01 09:29:32 sebastian Exp $ */
+/* $Id: info.c,v 1.275 2007/01/23 15:47:28 johannes Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -67,7 +67,7 @@
char *new_str;
TSRMLS_FETCH();
- new_str = php_escape_html_entities((char *) str, len, &new_len, 0,
ENT_QUOTES, "utf8" TSRMLS_CC);
+ new_str = php_escape_html_entities((char *) str, len, &new_len, 0,
ENT_QUOTES, "utf-8" TSRMLS_CC);
written = php_output_write_utf8(new_str, new_len TSRMLS_CC);
efree(new_str);
return written;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php