Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95718 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66265 invoked from network); 7 Sep 2016 08:47:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2016 08:47:19 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:54811] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/08-18051-514DFC75 for ; Wed, 07 Sep 2016 04:47:19 -0400 Received: (qmail 87572 invoked by uid 89); 7 Sep 2016 08:47:14 -0000 Received: from unknown (HELO mail-qk0-f173.google.com) (yohgaki@ohgaki.net@209.85.220.173) by 0 with ESMTPA; 7 Sep 2016 08:47:14 -0000 Received: by mail-qk0-f173.google.com with SMTP id v123so8240960qkh.2 for ; Wed, 07 Sep 2016 01:47:12 -0700 (PDT) X-Gm-Message-State: AE9vXwMmfE7yU2rStyChg2pVZ81aZxYtP9krh1OmrJh2i1cx/yBmarHRSRcZr+mTG2lItXsJnHCFLb2ARB/l2g== X-Received: by 10.55.167.68 with SMTP id q65mr3182965qke.61.1473238026498; Wed, 07 Sep 2016 01:47:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.242 with HTTP; Wed, 7 Sep 2016 01:46:26 -0700 (PDT) Date: Wed, 7 Sep 2016 17:46:26 +0900 X-Gmail-Original-Message-ID: Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: PHP_INI_MH()'s new_value_length being non-zero for NULL new_value? From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, I realized that setting default_charset does not set *.internal_encoding/etc. So I looked into what's wrong and found PHP_INI_MH()'s new_value_length being non-zero for NULL new_value. This makes fail to set proper value for *.intermal_encoding/etc. This happens from PHP 5.6 branch. It was 0 for null value otherwise encoding setting was not working from the beginning. Is this change intended or a bug? Or I got zero length during patch development by accident? If this behavior wouldn't be changed, I'll just commit patch that fix the encoding INI issue. Thank you, -- Yasuo Ohgaki yohgaki@ohgaki.net