Bug #70035 [NEW]: mbstring.internal_encoding is not derived from internal_encoding

From: Date: Thu, 09 Jul 2015 13:04:14 +0000
Subject: Bug #70035 [NEW]: mbstring.internal_encoding is not derived from internal_encoding
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194252@lists.php.net to get a copy of this message
From: hoch at fidion dot de Operating system: gentoo PHP version: 5.6.10 Package: mbstring related Bug Type: Bug Bug description:mbstring.internal_encoding is not derived from internal_encoding Description: ------------ mbstring.internal_encoding defaults to UTF-8 even if internal_encoding is defined differently. ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding This appears to be incorrect. Test script: --------------- php -i | grep encoding input_encoding => ISO-8859-1 => ISO-8859-1 internal_encoding => ISO-8859-1 => ISO-8859-1 output_encoding => ISO-8859-1 => ISO-8859-1 mbstring.internal_encoding => no value => no value php -r 'echo mb_internal_encoding();' UTF-8 After setting mbstring.internal_encoding = "ISO-8859-1" input_encoding => ISO-8859-1 => ISO-8859-1 internal_encoding => ISO-8859-1 => ISO-8859-1 output_encoding => ISO-8859-1 => ISO-8859-1 mbstring.internal_encoding => ISO-8859-1 => ISO-8859-1 php -r 'echo mb_internal_encoding();' ISO-8859-1 -- Edit bug report at https://bugs.php.net/bug.php?id=70035&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70035&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70035&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70035&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70035&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70035&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70035&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70035&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70035&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70035&r=support Expected behavior: https://bugs.php.net/fix.php?id=70035&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70035&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70035&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70035&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70035&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70035&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70035&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70035&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70035&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70035&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70035&r=mysqlcfg

« previous php.bugs (#194252) next »