#49189 [Opn->Tbd]: mbstring.func_overload can not be changed out of php.ini
| From: | jani@php.net | Date: | Fri, 07 Aug 2009 09:40:07 +0000 |
| Subject: | #49189 [Opn->Tbd]: mbstring.func_overload can not be changed out of php.ini | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2620@lists.php.net to get a copy of this message | ||
ID: 49189
Updated by: jani@php.net
Reported By: syu at pss dot com
-Status: Open
+Status: To be documented
-Bug Type: mbstring related
+Bug Type: Documentation problem
Operating System: Linux
PHP Version: 5.3.0
New Comment:
Obviously the documentation is wrong, it's PHP_INI_SYSTEM in sources
since fix of bug #43227 for PHP 5.2.7.
Previous Comments:
------------------------------------------------------------------------
[2009-08-07 08:35:15] syu at pss dot com
Description:
------------
For the link:http://us3.php.net/manual/en/ini.list.php, the
variable
"mbstring.func_overload" is set to PHP_INI_PERDIR. But actually, we can
not change its value except php.ini.
I trid to change its value in httpd.conf, .htacces or ini_set(). But
none of above succeeded.
Reproduce code:
---------------
I made one sub-directoy "test" in Apache HTMLRoot direcotry. The
related configureation in httpd.conf is as below:
<Directory "/usr/local/apache2/htdocs/test">
php_value mbstring.func_overload 7
php_value mbstring.encoding_translation On
AllowOverride All
Order allow,deny
Allow from all
</Directory>
In the file "index.php" of the "test" sub-directory, I wrote the
following code:
<?php
echo 'the value =
'.ini_get('mbstring.encoding_translation')."</br>";
echo 'the value =
'.ini_get('mbstring.func_overload')."</br>";
?>
Expected result:
----------------
the value = On
the value = 7
Actual result:
--------------
the value = On
the value = 0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49189&edit=1