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

From: Date: Thu, 16 Jul 2015 08:26:27 +0000
Subject: Bug #70035 [Asn]: mbstring.internal_encoding is not derived from internal_encoding
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194484@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 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: Found the cause. NULL (not empty string) setting skips module's ini setting initialization code. Previous Comments: ------------------------------------------------------------------------ [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 (#194484) next »