Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17899 invoked from network); 24 Mar 2015 11:44:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Mar 2015 11:44:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wg0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:35884] helo=mail-wg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/80-12194-23E41155 for ; Tue, 24 Mar 2015 06:44:50 -0500 Received: by wgra20 with SMTP id a20so168919322wgr.3 for ; Tue, 24 Mar 2015 04:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=TiE+M5C7gM92b3Y2PaDB8D4FyeEvP3JqPAOqDxrvcO4=; b=QcLBlnmk4/IGTy0vVUf7JymzC0mJNsy8YPevcGLsSWjAvDPcT4Su08muEqbZTGfXFg RGFlVE/Q3KcSNz67G5/j4JxT137Znnup/hflhqJrZZAvK3CUN6Cz7hkYXnQrPy5Sqv3W wW4EPeSHn1khqHFDFAZ0eeCyzuEXKtZIzwwyi9RQnIVYcQ1nrYW5LOuIt5OeocBbg5on eT9WE2R/37psfXazqmg+Je/49Ey1ahf3JMb39Ka2eADEPyypc4P/XSAtlNN4RQF8lzhn 6kvbdufTYxZJaFeGlQa0PS60xPPJ2XBVzLW8tAHvADB73F6vwNr0Hh7oo9BN7VQnvxyj 45OQ== MIME-Version: 1.0 X-Received: by 10.180.90.211 with SMTP id by19mr27965551wib.27.1427197487708; Tue, 24 Mar 2015 04:44:47 -0700 (PDT) Received: by 10.27.10.193 with HTTP; Tue, 24 Mar 2015 04:44:47 -0700 (PDT) Date: Tue, 24 Mar 2015 12:44:47 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=f46d043be0a44780820512074f21 Subject: Deprecate or remove mbstring function overloads in PHP 7 From: nikita.ppv@gmail.com (Nikita Popov) --f46d043be0a44780820512074f21 Content-Type: text/plain; charset=UTF-8 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? Nikita --f46d043be0a44780820512074f21--