Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53512 invoked from network); 12 Aug 2016 11:36:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2016 11:36:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; 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:54452] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/B1-56950-DB4BDA75 for ; Fri, 12 Aug 2016 07:36:31 -0400 Received: (qmail 100156 invoked by uid 89); 12 Aug 2016 11:36:25 -0000 Received: from unknown (HELO mail-qk0-f172.google.com) (yohgaki@ohgaki.net@209.85.220.172) by 0 with ESMTPA; 12 Aug 2016 11:36:25 -0000 Received: by mail-qk0-f172.google.com with SMTP id f123so6091478qkd.1 for ; Fri, 12 Aug 2016 04:36:25 -0700 (PDT) X-Gm-Message-State: AEkoouty9rkRgsU6+S9GhAE+v3rnQybUt47/0Xm4gbQ3ePaZjtdpSkXWx3XtwXLwxDYTGKl7eG6rwMcSrvNuYg== X-Received: by 10.55.76.17 with SMTP id z17mr16050888qka.96.1471001779842; Fri, 12 Aug 2016 04:36:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.242 with HTTP; Fri, 12 Aug 2016 04:35:39 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Aug 2016 20:35:39 +0900 X-Gmail-Original-Message-ID: Message-ID: To: "internals@lists.php.net" , Davey Shafik 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! There is missing special validation filter for optional inputs. It might be better to add this after code refactoring, because "optional" filter requires special behavior. If I add this now, I have to rewrite lots of existing code, probably. I would like to start voting soon. Anyone who has comment, please let me know ASAP. Davey, I'm keeping target version option. Please let me know if you feel uncomfortable with this new feature to PHP 7.1. It's pure new feature that does not affect existing one at all. This would be great addition for PHP 7.1. IMHO. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net