#45691 [Asn->Csd]: some per-dir or runtime settings may leak into other requests
| From: | moriyoshi@php.net | Date: | Sat, 02 Aug 2008 20:56:25 +0000 |
| Subject: | #45691 [Asn->Csd]: some per-dir or runtime settings may leak into other requests | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127517@lists.php.net to get a copy of this message | ||
ID: 45691
Updated by: moriyoshi@php.net
Reported By: moriyoshi@php.net
-Status: Assigned
+Status: Closed
Bug Type: mbstring related
Operating System: Irrelevant
PHP Version: 5.2.6
Assigned To: moriyoshi
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-08-02 20:18:27] moriyoshi@php.net
Description:
------------
Some per-dir or runtime settings that is set in a request pollutes the
global state of the extension and they leak into another request when
the web server's forked instances are reused between connections and no
corresponding system settings are provded.
Reproduce code:
---------------
<?php
// run without any system settings.
// if the language is set to neutral,
// the default value for the internal encoding is ISO-8859-1
var_dump(mb_internal_encoding());
ini_set('mbstring.internal_encoding', 'UTF-8');
var_dump(mb_internal_encoding());
?>
Expected result:
----------------
The first request:
ISO-8859-1
UTF-8
The second request:
ISO-8859-1
UTF-8
Actual result:
--------------
The first request:
ISO-8859-1
UTF-8
The second request:
UTF-8
UTF-8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45691&edit=1