Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69368 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83220 invoked from network); 27 Sep 2013 00:53:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Sep 2013 00:53:16 -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.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:60792] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/19-37010-AF6D4425 for ; Thu, 26 Sep 2013 20:53:15 -0400 Received: by mail-lb0-f170.google.com with SMTP id w7so1717634lbi.29 for ; Thu, 26 Sep 2013 17:53:11 -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=ec8sbd6jjCWUBNtYrhxBQuAlj/W3mVjnUu0I6+q0iXI=; b=uV8XWA/i4cLlyb1pYV7K7Zx8kF4wSZFENZ5fAOgRkEVUnQc5epnszGaGvV34ByUDZR pcXigwvIiDldyHlt6jSOFD5a3NDjwI/QuF7sIks6dpTzHBiP16O6qcQO5rOxsd4o5ScG i+2ETgNo66E73KQtO+bpuoQ2qpu+dL2ymAWKFNKTMFoh9iqtoxBG45HFClOon9+jSl/O JzOfjy5Kp09HiQXmeOd4riFGqOxunlzAyfNB08Pdi8mkQGKNxZkV38kgRex9ZJvd0vRl ghQl1Z3D8yuGtgqTCBPKwphw8KUFuwsr1RFNKguD+ccx1SzPEClIEiPZA75BU0ndqC0c nKSA== X-Received: by 10.152.115.176 with SMTP id jp16mr3049898lab.17.1380243191343; Thu, 26 Sep 2013 17:53:11 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.154.201 with HTTP; Thu, 26 Sep 2013 17:52:31 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Sep 2013 09:52:31 +0900 X-Google-Sender-Auth: NyfzUBlDo2JvTnlqK8DvXSGbfQA Message-ID: To: Pierre Joye Cc: PHP internals , Leigh Content-Type: multipart/alternative; boundary=001a11c350961facda04e752e903 Subject: Re: [PHP-DEV] [RFC] Escaping RFC for PHP Core - Updates? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c350961facda04e752e903 Content-Type: text/plain; charset=UTF-8 Hi Pierre, On Sat, Sep 7, 2013 at 5:51 PM, Pierre Joye wrote: > I like the goal of this proposal. > > It would however fits much better in ext/filter. Yes, escaping has > different purposes than filtering. > > I have some worries about the implementation. It is not an easy task and > some external libraries may already have these features (esp. CSS or JS). > > About the API: > > To have a kind of wrapper class is not very useful. It will most likely > end with static methods with a large set of arguments or options array, not > very sexy. > I agree. It would end up with static methods and not cool. If it's going to be static method only calls, usual functions are better. ext/filter is a good option. I'll add this in the RFC as a choice. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c350961facda04e752e903--