Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71219 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57658 invoked from network); 18 Jan 2014 00:20:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jan 2014 00:20:52 -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.179 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.179 mail-lb0-f179.google.com Received: from [209.85.217.179] ([209.85.217.179:34066] helo=mail-lb0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/53-39935-1E8C9D25 for ; Fri, 17 Jan 2014 19:20:51 -0500 Received: by mail-lb0-f179.google.com with SMTP id l4so1892016lbv.10 for ; Fri, 17 Jan 2014 16:20:46 -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=7qK8uULVDBqokAZKawmdLwByaCrvZvaXIYOYhQl/t0w=; b=m1SoxwsQE8okNfnfSYuoQLcblNe1h5pMdrcqN9cPKpi4VYba8131Aq6J4zENADPc2E 4Uj9WZ2oZ/SChqCBSVxevXR6/cgTwDB4tcWR5qUkUYIXup1n8fjDJiH2OhyOSgoAG8FE IhTSNAW0yNDATgnpwlC3LrzHQtnEQAZKYUt/GOkB3xFBwsL9ymr7hPoMYj0QbJ6XJZsC UNRm5o0XNHczKHgRcAp/skBFtqzZ/NNQfDMW2NTNIsXepiXl63Aw5KaIJx1KF9/jgML/ 4QNwRF+HTk3qWYp5tjsI34J/lzDo56ncQJ7LP31etZuWM0w2GTJlJM4+r1YsVyZEgPK/ Ce+A== X-Received: by 10.112.45.108 with SMTP id l12mr2410873lbm.21.1390004446253; Fri, 17 Jan 2014 16:20:46 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Fri, 17 Jan 2014 16:20:06 -0800 (PST) In-Reply-To: References: <1389976678.2057.8.camel@smugmug> Date: Sat, 18 Jan 2014 09:20:06 +0900 X-Google-Sender-Auth: qBw7erJc3vHXg0KS8Qv55O4-ReM Message-ID: To: Julien Pauli Cc: Mike , Nikita Popov , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1134bfc841592404f033a13a Subject: Re: [PHP-DEV] [RFC] Multibyte char handling From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1134bfc841592404f033a13a Content-Type: text/plain; charset=UTF-8 Hi Julien, On Sat, Jan 18, 2014 at 7:10 AM, Yasuo Ohgaki wrote: > Why is that an issue ? >> We just leave it as-is , or ? > > > Some users are annoyed by sloppy multilingual implementations using > this option. There is feature request from user who want to remove > mbstring.func_overload INI option. > > https://bugs.php.net/bug.php?id=65785 > > We may extend or drop this feature. I neutral for this. > Since we are better to concentrate on fixing the security issue, I've made it open issue for future releases. I'll just add mb new functions to mbstring.func_overload INI option. If func_overload is supported, we still needs php_mblen() for command line output since it's not good idea to detect locale and using internal_encoding opens new vulnerability. Functions that are better to use locale are - mb_escape_shell_arg() - mb_escape_shell_cmd() These function may override locale by encoding parameter. Since fgetcsv() uses locale now, we may do the same for fgetcsv() also. The RFC is updated. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1134bfc841592404f033a13a--