Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69974 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78258 invoked from network); 30 Oct 2013 23:06:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2013 23:06:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.43 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.43 mail-la0-f43.google.com Received: from [209.85.215.43] ([209.85.215.43:51264] helo=mail-la0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/F1-00845-BF091725 for ; Wed, 30 Oct 2013 18:06:37 -0500 Received: by mail-la0-f43.google.com with SMTP id el20so1661100lab.2 for ; Wed, 30 Oct 2013 16:06:32 -0700 (PDT) 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=EOswqMKmbrd3LoR/HBtwOtetPhhRcQq8J60Jrl6oOS8=; b=YQCp+V/7OeBWyUHtkrwAMf7rVwuyNk20IO4Yt4cna8ekyhF/5p7fU1sZNZ+xwnsDkA 4WDDH8QXeDIvVhnCYtxj2NkZuVqWYLNVvwripcPr7FtJLyE+iBD+8ASvSZLQebG6xVyF WEap5Pe/wN+K9Il3TTP8yhpq2V4urfzN8NaJBSUCrUxr6DxW3oCAE+tlhw3dyyK01sJJ vEfArt/44zFJqU/Az6VGo0hFOq1lrFdPdySPu/GiihWd2M73Q8z1g20cSREQ5XUalSWt BqISSZMhYAIXOUWrUtE8eB3RF7qAFyIrB2ZSNAeJZQOVJo7xnJPCVZLvpmQLAja/dhlE KSbA== X-Received: by 10.152.202.167 with SMTP id kj7mr55077lac.43.1383174392785; Wed, 30 Oct 2013 16:06:32 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.154.201 with HTTP; Wed, 30 Oct 2013 16:05:52 -0700 (PDT) In-Reply-To: <526F98C1.4040607@php.net> References: <526F98C1.4040607@php.net> Date: Thu, 31 Oct 2013 08:05:52 +0900 X-Google-Sender-Auth: 30utgymMSYZsqSthaxIMgSLBXhg Message-ID: To: Joe Watkins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1135f79c5830ee04e9fd62e3 Subject: Re: [RFC] Use default_charset As Default Character Encoding From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1135f79c5830ee04e9fd62e3 Content-Type: text/plain; charset=UTF-8 Hi Joe, On Tue, Oct 29, 2013 at 8:15 PM, Joe Watkins wrote: > I'm not sure what it is you are actually trying to achieve here ?? > I have 3 objectives in this RFC. 1. Setting charset in HTTP header is recommended since the first XSS advisory in 2000 Feb. by CERT and Microsoft. 2. There are too many encoding settings and it is better to consolidated. 3. If we have yet another multibyte string module in the future, the new settings can be used. I'll add these if I didn't write them in RFC later. I proposed "default_charset=UTF-8" years ago, but there were many users uses "ISO-8859-*"/"EUC-*"/etc at that time and we decided leave the setting to users. +1 on the 5.5 changes > > But the rest I don't really understand what the aim is, it would seem that > renaming settings, especially ones that are not actually anything to do > with the core, is just breaking compatibility for no good reason. > Encoding must be specified for proper operation. It's a security risk also. > What I could understand is a proposal to move the functionality provided > by mbstring/iconv into core and introduce dot script_encoding complementary > settings: > > zend.input_encoding > zend.output_encoding > > I could understand this kind of proposal being aimed at 6. > I don't think Zend engine will have multibyte char handling feature at least any time soon. Currently, Zend engine has zend multibyte option, but it's only for encoding that is not compatible ISO-8859-1. (e.g. SJIS, BIG5. These encodings has \ in chars and engine would not work script written by these encodings with zend multibyte off.) However, having encoding settings in the engine will work also even if it does not use them. It may be a good idea have these settings in the engine. I'm +1 for this idea. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1135f79c5830ee04e9fd62e3--