Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100374 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68591 invoked from network); 4 Sep 2017 23:06:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2017 23:06:28 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.178 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.128.178 mail-wr0-f178.google.com Received: from [209.85.128.178] ([209.85.128.178:33139] helo=mail-wr0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/B1-04538-37CDDA95 for ; Mon, 04 Sep 2017 19:06:27 -0400 Received: by mail-wr0-f178.google.com with SMTP id a43so4766796wrc.0 for ; Mon, 04 Sep 2017 16:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hWRz9ldAHpDKtWmMI3rykmHVjzAZ2ud9W6Tkn6czxRw=; b=R7m9fJrDODuJ6daCNgNXD53dbctQ3CfpLPdtCWOQhkEjw5RWF6S5WGD20t0QlQmF5K U9QdxZion4p/0kPajA/uvrBz5QDfyKbN1b2wXnTSE95gPBeKtAnUHo30RSxzUtM/xANc nO3TEUYaoMUMGhQp3WldJ1MLoqlPbpYAed2JLYdXH77ND23GQrgv21Nn7v1IswuDXcrh paqKP286CMsrFdTGPl1CTTVNP8btcMtsh1BDHjll2cCU8l5ObGY9aFtPjAv1xglJs3ZG 2m391jUgvHVjVhWKit5VAcvBiYpSpqBvEfEG/J+nr65LIrQmfOwHoTh7qrItqoIHguVG m0VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hWRz9ldAHpDKtWmMI3rykmHVjzAZ2ud9W6Tkn6czxRw=; b=G2mOevDF8rdYzR75HFSqKPgBi7rJVXd4Y5PBtnqjIm+kqvn0h3ydNHS+AxZ10+CL4c CgRICJbA0g19mvnrk0nwZcesUg1zRGzsCXRSDnkTJtVLOU+Kpl5OdNJGJHFbqNRinERS RJk4bqVVvd5yNle3nvY8mP8RMh8euWzP/odKNHmKa6gtHBI5dXf6dDO0fG1ETlmT+Xxq xh02aknTNv/50nzIFzcba6aPggpAocBVACG/y5tGHI1FPsBy00Sj2pFw3NQx0FAQBbG8 y6O2d3qupnSij4Fa6/7QkWL/1F4GLYwcDcMclgqo0Afzimvyt88N0kUDj+15ooAGeJXt b7lQ== X-Gm-Message-State: AHPjjUg6y35lRQOOMVCH3pvL1oaZsxqonK0LESIaaKXc04SSj/9AkBN6 adfdY2GbRed3Qkw/x/+HZgeA5E8sBA== X-Google-Smtp-Source: ADKCNb7Z88NCOM9dYqdCZ806KDlBxFCPTr9CNPIoEDu7oPNTu9PjbEKATy//GDCNfV45v9KZbaSZue0EoxsSHY+JigQ= X-Received: by 10.223.179.67 with SMTP id k3mr1057902wrd.329.1504566384057; Mon, 04 Sep 2017 16:06:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.164.6 with HTTP; Mon, 4 Sep 2017 16:06:03 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 Sep 2017 01:06:03 +0200 Message-ID: To: Crocodile Cc: Rowan Collins , Yasuo Ohgaki , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="94eb2c1b4502dce1f2055865288b" Subject: Re: [PHP-DEV] A validator module for PHP7 From: ocramius@gmail.com (Marco Pivetta) --94eb2c1b4502dce1f2055865288b Content-Type: text/plain; charset="UTF-8" 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 Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --94eb2c1b4502dce1f2055865288b--