Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85449 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33896 invoked from network); 24 Mar 2015 14:17:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Mar 2015 14:17:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.88 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.88 blu004-omc2s13.hotmail.com Received: from [65.55.111.88] ([65.55.111.88:65336] helo=BLU004-OMC2S13.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/03-12194-C0271155 for ; Tue, 24 Mar 2015 09:17:49 -0500 Received: from BLU436-SMTP34 ([65.55.111.72]) by BLU004-OMC2S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 24 Mar 2015 07:17:46 -0700 X-TMN: [LMUt5Kq+Lnp6Y6vC2L2f6Zt1yhFJKi2z] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: <006301d06637$ebbb4ee0$c331eca0$@php.net> Date: Tue, 24 Mar 2015 15:17:41 +0100 CC: PHP internals Content-Transfer-Encoding: quoted-printable References: <006301d06637$ebbb4ee0$c331eca0$@php.net> To: francois@php.net, Nikita Popov X-Mailer: Apple Mail (2.2070.6) X-OriginalArrivalTime: 24 Mar 2015 14:17:43.0924 (UTC) FILETIME=[4B7C9B40:01D0663D] Subject: Re: [PHP-DEV] Deprecate or remove mbstring function overloads in PHP 7 From: bobwei9@hotmail.com (Bob Weinand) > Am 24.03.2015 um 14:39 schrieb Fran=C3=A7ois Laupretre = : >=20 >> De : Nikita Popov [mailto:nikita.ppv@gmail.com] >>=20 >> The mbstring extension supports replacing PHP string functions with >> multibyte variants through the mbstring.func_overload ini option. >>=20 >> This ini setting is a real PITA for code compatibility, as it makes = it >> impossible to rely on the output of even the most basic PHP = functions, like >> strlen(). Security-critical code in libraries and frameworks = typically >> handles this issue by conditionally using either strlen() or 8bit >> mb_strlen(). Apart from that, the issue is generally ignored. >>=20 >> If we do not wish to drop support for this option in PHP 7, I would = at >> least suggest to deprecate it. >=20 > Probably fine, but how does your suggestion fit in the PHP 7 timeline = ? The BC break requires it is introduced in 7.0. And it is too late for = this. As everyone seems to be against delaying the timeline, I hope we = won't accept exceptions. >=20 > Regards >=20 > Fran=C3=A7ois No, he isn't asking for delaying the timeline. He's asking if we can do = this without RFC. Minimal self-contained changes don't need a RFC and = can go as well into alpha/beta phase without issues. Nikita, I assume with dropping you meant throwing a warning in case the = option is detected and remove its functionality? Removing it completely = in 7.0 may cause silent failures... If yes, I'm fine with dropping that ini switch. Thanks, Bob=