Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85450 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40779 invoked from network); 24 Mar 2015 15:25:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Mar 2015 15:25:21 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:34156] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/93-12194-FD181155 for ; Tue, 24 Mar 2015 10:25:21 -0500 Received: by wgs2 with SMTP id 2so67033308wgs.1 for ; Tue, 24 Mar 2015 08:25:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=GtWybnBUEEHDcts7XneDEiQcEgqEIkFGgULSkMf0OvE=; b=gzhk6JC22xx96ZDZrL2RYlrgbq4Tpm5H1ljXyQkx6VOESzDM7zNB5LzosE85gnzpHK k1oOGpEjl7ojj5b0gOEHmdLInE9kPxvcmPsyOvyfxAYBM1rNcCdlB2zRXf0Zbrc34Ijc dMUjw2VBhzSslrH+graCzd8lbokusj9Qcs/Zcx/AP+5oQT1AlkM6hs+wOxD/E/bc7L83 7f8vwbbtlEA7qAQ9PK81seXrEcL4CVoOCtJzJ8nC2ACwDhaJuedjGnuMCmpn7suJTRt4 CwlAjsIxvYaBEbFfVT2vG3hPFc11YvBg5SMP3c9vtXNBtESLkz6dRqzZt+MmQP6NTux6 F60A== X-Gm-Message-State: ALoCoQlUmfQNWA1Y0iZVt1cP8M4GdUzRRWYSREciRl4ig/ZRvqDA+VaSt5TMEiPOAe8MkwY6dh2Z3TTB9xRCYNIvs1ANRfpH/MCsB5QoFeZtObGgbtO8OgjjiXj8c3+vmY4gyanDmM5ygq1Hj3kkFB0svwdH15G9HA== X-Received: by 10.181.11.202 with SMTP id ek10mr28384612wid.37.1427210716804; Tue, 24 Mar 2015 08:25:16 -0700 (PDT) References: In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQINGwJxyuYhIX37R6FSHjGdA0ViXZyyVwgw Date: Tue, 24 Mar 2015 08:25:15 -0700 Message-ID: <66c0cca2453de53bed0328af2732c7bd@mail.gmail.com> To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: RE: [PHP-DEV] Deprecate or remove mbstring function overloads in PHP 7 From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Nikita Popov [mailto:nikita.ppv@gmail.com] > Sent: Tuesday, March 24, 2015 4:45 AM > To: PHP internals > Subject: [PHP-DEV] Deprecate or remove mbstring function overloads in PHP > 7 > > Hi internals! > > The mbstring extension supports replacing PHP string functions with > multibyte variants through the mbstring.func_overload ini option. > > 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. > > If we do not wish to drop support for this option in PHP 7, I would at > least > suggest to deprecate it. > > Thoughts? I think we need to understand how it's actually being used before discussing its deprecation. IIRC it's extremely widely used in Japan, but could be wrong. I'd want to hear from our Japanese contributors what their thoughts are. Zeev