Bug #70035 [Asn->Csd]: mbstring.internal_encoding is not derived from internal_encoding

From: Date: Fri, 09 Sep 2016 06:30:59 +0000
Subject: Bug #70035 [Asn->Csd]: mbstring.internal_encoding is not derived from internal_encoding
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203900@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70035&edit=1 ID: 70035 Updated by: yohgaki@php.net Reported by: hoch at fidion dot de Summary: mbstring.internal_encoding is not derived from internal_encoding -Status: Assigned +Status: Closed Type: Bug Package: mbstring related Operating System: gentoo PHP Version: 5.6.10 Assigned To: yohgaki Block user comment: N Private report: N New Comment: This should be fixed. If problem persist, please reopen. BTW, INI settings are not propagated, but if lower encoding setting is empty, higher precedence setting will be used. Previous Comments: ------------------------------------------------------------------------ [2015-07-16 08:26:26] yohgaki@php.net Found the cause. NULL (not empty string) setting skips module's ini setting initialization code. ------------------------------------------------------------------------ [2015-07-09 13:04:13] hoch at fidion dot de 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 this bug report at https://bugs.php.net/bug.php?id=70035&edit=1

« previous php.bugs (#203900) next »