Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71198 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64106 invoked from network); 16 Jan 2014 22:48:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2014 22:48:34 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.171 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.171 mail-lb0-f171.google.com Received: from [209.85.217.171] ([209.85.217.171:50590] helo=mail-lb0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/07-21406-1C168D25 for ; Thu, 16 Jan 2014 17:48:33 -0500 Received: by mail-lb0-f171.google.com with SMTP id c11so2404225lbj.16 for ; Thu, 16 Jan 2014 14:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=VtArMwS7mMtrw7JxTxsW4hz4/iq8vInbJ/VAKWvCo7o=; b=THiDIYAsEa8edkJ4Cj3deiqIo1gCPveqE45I9wYLsIMhoHQ9wcyNKKJCFNZfZXJX55 nqS0OiBPTwozAOhIEApfpE5HhW/PTXgySQ50hrrhXvBs09S0xdnWamTgiOKnV+sa2VXB eZUAvzVvWtD3XfBWKdauLWlxLVzAE690a5TGt6ETh/yh9HBw6jmgI4W+AnAo8EE6Skzl +6+k3EJ5ULedSOpaS6K+Gb+lfp9Fsxs0KxBbsMll+90a0d1FvUJOlnaWYXXHRJSt61nG H0nOR+rjs5GvkYJ5VZ5Tqn/L5vYA5ea09y/B2+0IfcrNN+BR/cC1pGFmYmWz6MyupaO1 qc9g== X-Received: by 10.112.89.42 with SMTP id bl10mr6049551lbb.18.1389912509837; Thu, 16 Jan 2014 14:48:29 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Thu, 16 Jan 2014 14:47:49 -0800 (PST) In-Reply-To: References: Date: Fri, 17 Jan 2014 07:47:49 +0900 X-Google-Sender-Auth: F3chSn2q14THf8tyA74vIMNdb1Q Message-ID: To: Nikita Popov Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c374a66af55604f01e3912 Subject: Re: [PHP-DEV] [RFC] Multibyte char handling From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c374a66af55604f01e3912 Content-Type: text/plain; charset=UTF-8 Hi Nikita, On Fri, Jan 17, 2014 at 7:38 AM, Nikita Popov wrote: > No, I don't want a locale-based approach. I want the string functions to > stay as is. Multibyte variants of the functions can be added to the > multibyte extension. Creating mb_*() function would not solve security issues of multibyte char handling since multibyte aware functions are optional feature. However, it may work if PHP compiles mbstring by default and discourage use of addslashes()/var_export()/stripslashes() in favor of mb_*() variants. This could be voting option. Did I understand your opinion correctly? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c374a66af55604f01e3912--