Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100376 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80860 invoked from network); 5 Sep 2017 03:20:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2017 03:20:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=pmjones88@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pmjones88@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.175 as permitted sender) X-PHP-List-Original-Sender: pmjones88@gmail.com X-Host-Fingerprint: 209.85.223.175 mail-io0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:33827] helo=mail-io0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/E2-04538-FD71EA95 for ; Mon, 04 Sep 2017 23:19:59 -0400 Received: by mail-io0-f175.google.com with SMTP id b2so9035798iof.1 for ; Mon, 04 Sep 2017 20:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8BCOZHQOBRdsl0p/9MJdnPgZ6CMqnSaSjDHvzOGRNjk=; b=Ej6NpmGuR/6Ktjt3wZa5T9sBBAQZdQIrhYVYtGjVevc9zPoTNV2VKA7lK2Rr7OJ9qO kgHHnXG2uj3drXbb4cQ+sWYWgGs321mCyVlMhvtzBOB6ZahjSMKG6Qn8tt/uQdbpT/1J 4aSo/xBDCf0SDi2pINpPq3yZyieSxEXW07ph9pcowaXCn+Psavygh5KYzDG31nROyIdW dSb0c+A5MCgveYEYI0tBRlAhOaQNbK5wQLcY+PQKUAdDquXbaQZFb3kJrM78MR0HBPI3 ZbkZliOvJYz4C+uSVewbLGrEanRdYP1Eb1evIGe5WadxtSoaK2OOXIn2bTscxYjZeiaP AwpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8BCOZHQOBRdsl0p/9MJdnPgZ6CMqnSaSjDHvzOGRNjk=; b=Q0RAD/i3dM259DrXzDx19bwGw5Qa1BCV+l5m/9tdCSivVt8vhX9Z4t07dD2G+s56ab lIT5kLgSpdFUtkjO2CJx1Oabr3Z4m4Gc0d/iTnN7rUBvXQpWIW+pQ2dwk0UgVby5pcdO N1tjymrLGpp8A47kVTsyYSHzu/F5WSvFNj1KBuLHAoZvDy2kBu7wEbOl9aHS3kkcmMBq HeTGSeN7mWfKafj7ljB1/cP4UYWYIM0+e7vCLERCT/9LpfkjmyK6kQH3M8n6oRRJZzEs Jr7IXZeZa3bO+/8nGbwfo1vAYyBmmWtUdsliw6Us/MFpKDQW29NI6fpWjkz8knjxemTU qzeg== X-Gm-Message-State: AHPjjUi2eOd6xuiw1qD24QdguacCwrRXkTU60Ld5nZmXBrNxCBiUX7iP whNwM4SrHXOF4Q== X-Google-Smtp-Source: ADKCNb5bbOg86U44dVwJZUtixD/YN/XjBmGCpB591eIXtBmMMz+kmNLu5DLgMY1oCttnQhNA04u9uA== X-Received: by 10.36.96.75 with SMTP id i72mr2684557itc.29.1504581596674; Mon, 04 Sep 2017 20:19:56 -0700 (PDT) Received: from ?IPv6:2602:306:bdf1:c270:20a6:9cbc:6e8c:4cd0? ([2602:306:bdf1:c270:20a6:9cbc:6e8c:4cd0]) by smtp.gmail.com with ESMTPSA id a186sm4169228ioe.79.2017.09.04.20.19.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Sep 2017 20:19:55 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) In-Reply-To: Date: Mon, 4 Sep 2017 22:19:53 -0500 Cc: Crocodile , Rowan Collins , Yasuo Ohgaki , "internals@lists.php.net" Content-Transfer-Encoding: 7bit Message-ID: <0C7F986C-B0BC-4315-98ED-B4FD003B9399@gmail.com> References: To: Marco Pivetta X-Mailer: Apple Mail (2.3273) Subject: Re: [PHP-DEV] A validator module for PHP7 From: pmjones88@gmail.com (Paul Jones) > On Sep 4, 2017, at 18:06, Marco Pivetta wrote: > > On Mon, Sep 4, 2017 at 8:56 PM, Crocodile wrote: > >> In most cases users would like more than just valid/invalid, i. e. which >> particular rule(s) failed and also human-readable error messages. As of >> simple validation that is almost always at hand, filter_* functions do a >> good job, although I agree that they could be better. I, for one, would >> like to see a full-featured validation as part of PHP. However, this RFC >> only looks like a slightly better version of filter_* functions, that is, >> the new module will provide almost the same functionality but with a >> different interface. I would vote against it. >> > > And also, it would need to be better than all of these to be worth writing > it in C: > > https://packagist.org/search/?q=validator And these as well: https://packagist.org/search/?q=filter (Or at least have some level of parity.) -- Paul M. Jones pmjones88@gmail.com http://paul-m-jones.com Modernizing Legacy Applications in PHP https://leanpub.com/mlaphp Solving the N+1 Problem in PHP https://leanpub.com/sn1php