Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102004 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80035 invoked from network); 27 Mar 2018 11:18:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2018 11:18:56 -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:49470] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/2C-35998-D982ABA5 for ; Tue, 27 Mar 2018 06:18:55 -0500 Received: (qmail 30454 invoked by uid 89); 27 Mar 2018 11:18:50 -0000 Received: from unknown (HELO mail-it0-f53.google.com) (yohgaki@ohgaki.net@209.85.214.53) by 0 with ESMTPA; 27 Mar 2018 11:18:50 -0000 Received: by mail-it0-f53.google.com with SMTP id h143-v6so7038242ita.4 for ; Tue, 27 Mar 2018 04:18:48 -0700 (PDT) X-Gm-Message-State: AElRT7GLRg4TzIRkH7lgOtFUt1/3mbZzNhhBPv/PQczwl+9sJOjBILpr ttWyFh7t1EJhc8/YWHt+YqJaXHp6lFBkZKDrWg== X-Google-Smtp-Source: AIpwx4+yAVy9Y7+MItvm2XQlIuABul41MSxmwCWAHWIq6nwB4IhXtTtRiMfs5rxaSO0jvya9r2TTDwU1Qykm+vFUarU= X-Received: by 2002:a24:d8:: with SMTP id 207-v6mr10477950ita.3.1522149523282; Tue, 27 Mar 2018 04:18:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.151.162 with HTTP; Tue, 27 Mar 2018 04:18:02 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Mar 2018 20:18:02 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Crocodile Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000a163ba0568630d66" Subject: Re: [PHP-DEV] Re: A validator module for PHP7 From: yohgaki@ohgaki.net (Yasuo Ohgaki) --000000000000a163ba0568630d66 Content-Type: text/plain; charset="UTF-8" On Tue, Mar 27, 2018 at 8:03 PM, Crocodile wrote: > It's almost always the case that you need to provide a meaningful feedback > about what exactly went wrong, rather then to just say "Failed!" While > simplicity is nice and you cannot overrate value of validation, this whole > thing is pretty much useless to me personally without this ability. Also, I > don't think it's a good idea to mix validation of scalar values, arrays and > even multiple arrays, in a single function. > It seems you underrate validations. It's a fundamental requirement for programs to work correctly. Fundamental requirement: Programs can only work correctly with valid inputs. There are countless reason why one should validate ALL inputs other than this. Almost nobody does this now, even if it is "fundamental" requirement. How you would solve this? -- Yasuo Ohgaki yohgaki@ohgaki.net --000000000000a163ba0568630d66--