php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49189 mbstring.func_overload can not be changed out of php.ini
Submitted: 2009-08-07 08:35 UTC Modified: 2012-11-12 02:43 UTC
From: syu at pss dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.0 OS: Linux
Private report: No CVE-ID: None
 [2009-08-07 08:35 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-07 09:40 UTC] jani@php.net
Obviously the documentation is wrong, it's PHP_INI_SYSTEM in sources since fix of bug #43227 for PHP 5.2.7.
 [2009-09-11 06:08 UTC] svn@php.net
Automatic comment from SVN on behalf of torben
Revision: http://svn.php.net/viewvc/?view=revision&revision=288256
Log: Note that mbstring.func_overload is once again PHP_INI_SYSTEM only.
Addresses bugs #49238, #43227, and #49189.

This really should have been mentioned in the release notes for 5.2.7
and 5.3.0.
 [2009-09-11 06:15 UTC] torben@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2011-01-06 14:41 UTC] lars dot schultz at toolpark dot com
What is the reason for this BC-Break? I don't understand why PHP_INI_PERDIR-Support was removed. There was nothing about in the changelog. This is a crucial setting for us and suddenly it just stops working...not even a warning!
 [2012-03-28 09:58 UTC] jerome dot bogaerts at tudor dot lu
The example above should work in httpd.conf. Indeed, it is written in the documentation that mbstring.func_overload is in PHP_INI_SYSTEM change mode. The documentation (http://www.php.net/manual/en/configuration.changes.modes.php) states that in PHP_INI_SYSTEM mode, the "Entry can be set in php.ini or httpd.conf".

However, the modifications in httpd.conf seems not to be working for this guy nor for me using PHP 5.3.5.
 [2012-03-29 07:24 UTC] philip@php.net
So this is one of the special "Must be changed in php.ini" settings, 
one that cannot be changed in httpd.conf or similar?
 [2012-03-29 07:24 UTC] philip@php.net
-Status: Closed +Status: Re-Opened
 [2012-11-12 02:42 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=328314
Log: Clarify the mbstring.func_overload documentation, specifically where it can be
changed.

Fixes doc bug #49189 (mbstring.func_overload can not be changed out of
php.ini).
 [2012-11-12 02:43 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2012-11-12 02:43 UTC] aharvey@php.net
-Status: Re-Opened +Status: Closed -Assigned To: +Assigned To: aharvey
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 06:01:30 2024 UTC