[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-internals
Subject:    [PHP-DEV] Non ASCII char in php.ini [patch]
From:       Lior Kaplan <lior.k () zend ! com>
Date:       2012-06-25 8:48:46
Message-ID: 1340614126.32207.13.camel () pc-liork
[Download RAW message or body]

Hi,

We've noticed that the php.ini-development and php.ini-production
include a UTF-8 character which looks weird under ASCII (or other
"simple" locales).

It was added with this commit to the PHP-5.3 branch:
http://git.php.net/?p=php-src.git;a=patch;h=c9b5d92821db7335632f8578871e2b75ac018f2a

(It doesn't exist in PHP-5.4/master branches)

diff --git a/php.ini-development b/php.ini-development
index 1375516..d1fa7a3 100644
--- a/php.ini-development
+++ b/php.ini-development
@@ -1909,7 +1909,7 @@ ldap.max_links = -1
 
 [xsl]
 ; Write operations from within XSLT are disabled by default.
-; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK
|<C2><A0>XSL_SECPREF_WRITE_FILE = 44
+; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK |
XSL_SECPREF_WRITE_FILE = 44
 ; Set it to 0 to allow all operations
 ;xsl.security_prefs = 44
 
diff --git a/php.ini-production b/php.ini-production
index 495fb01..9d5861d 100644
--- a/php.ini-production
+++ b/php.ini-production
@@ -1909,7 +1909,7 @@ ldap.max_links = -1
 
 [xsl]
 ; Write operations from within XSLT are disabled by default.
-; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK
|<C2><A0>XSL_SECPREF_WRITE_FILE = 44
+; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK |
XSL_SECPREF_WRITE_FILE = 44
 ; Set it to 0 to allow all operations
 ;xsl.security_prefs = 44
 
(this is the diff with LC_ALL=c, notice the "<C2><A0>" removal. The
change isn't visible with UTF-8 locales)

Thanks,

Lior Kaplan
Zend Technologies Ltd.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic