# Non ASCII char in php.ini [patch]

- Thread: https://externals.io/message/60959
- Original archive: https://news-web.php.net/php.internals/60959
- Started by Lior Kaplan on 2012-06-25T08:48:46+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #60959 — Lior Kaplan — 2012-06-25T08:48:46+00:00

URL: https://externals.io/message/60959#60959

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.

---

## #60968 — Christian Stocker — 2012-06-26T09:55:16+00:00

URL: https://externals.io/message/60959#60968 · In reply to: #60959

Hi

Yeah, that looks very wrong. Do you want to commit it or should I?

chregu


> 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.
> 

-- 
Liip AG  //  Feldstrasse 133 //  CH-8004 Zurich
Tel +41 43 500 39 81 // Mobile +41 76 561 88 60
www.liip.ch // blog.liip.ch // GnuPG 0x0748D5FE
