From:             [EMAIL PROTECTED]
Operating system: Irrelevant
PHP version:      5.2.6
PHP Bug Type:     mbstring related
Bug description:  some per-dir or runtime settings may leak into other requests

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 bug report at http://bugs.php.net/?id=45691&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45691&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45691&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45691&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45691&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45691&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45691&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45691&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45691&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45691&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45691&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45691&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45691&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45691&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45691&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45691&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45691&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45691&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45691&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45691&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45691&r=mysqlcfg

Reply via email to