Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78296 invoked from network); 5 Aug 2016 06:11:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2016 06:11:23 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:40423] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/D6-33134-80E24A75 for ; Fri, 05 Aug 2016 02:11:22 -0400 Received: (qmail 121656 invoked by uid 89); 5 Aug 2016 06:11:17 -0000 Received: from unknown (HELO mail-qk0-f178.google.com) (yohgaki@ohgaki.net@209.85.220.178) by 0 with ESMTPA; 5 Aug 2016 06:11:17 -0000 Received: by mail-qk0-f178.google.com with SMTP id v123so121790840qkh.3 for ; Thu, 04 Aug 2016 23:11:17 -0700 (PDT) X-Gm-Message-State: AEkoouvhm+I1B50StP2uKD20xTv0agOJvEjzm0aoBTGJf0V2Hcl8G13CkyCUm6c8JO7XCoDHOIAZ9nMoafI3GA== X-Received: by 10.55.39.81 with SMTP id n78mr11108903qkn.10.1470377471475; Thu, 04 Aug 2016 23:11:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.242 with HTTP; Thu, 4 Aug 2016 23:10:31 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Aug 2016 15:10:31 +0900 X-Gmail-Original-Message-ID: Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [RFC][DISCUSSION] Add validation functions to filter From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, On Wed, Aug 3, 2016 at 3:43 PM, Yasuo Ohgaki wrote: > > This RFC is to add validation functions and string validation filter. > > https://wiki.php.net/rfc/add_validate_functions_to_filter > > It also allows to define multiple filters for an input. i.e. You can > apply multiple filter rules for an input. > > Comments are appreciated! I updated RFC so that proposed function names to have "filter_assert_" prefix. Since input validation could mean various things, I added more descriptions about input validation and secure coding. https://wiki.php.net/rfc/add_validate_functions_to_filter ToDo - Rename function in PR - Add flag for allowing TAB in string - Use php_error_docref() for usage mistakes - Finish filter_check_definition implementation() - Add API that retrieves array key name that raises exception. If these are finished, it's good to go for vote. If I'm missing something or you have suggestions, please let me know soon. Thank you! -- Yasuo Ohgaki yohgaki@ohgaki.net