Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94840 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45243 invoked from network); 4 Aug 2016 21:48:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2016 21:48:33 -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:39647] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/E1-33134-038B3A75 for ; Thu, 04 Aug 2016 17:48:33 -0400 Received: (qmail 98051 invoked by uid 89); 4 Aug 2016 21:48:28 -0000 Received: from unknown (HELO mail-qk0-f177.google.com) (yohgaki@ohgaki.net@209.85.220.177) by 0 with ESMTPA; 4 Aug 2016 21:48:28 -0000 Received: by mail-qk0-f177.google.com with SMTP id x185so53734061qkc.2 for ; Thu, 04 Aug 2016 14:48:27 -0700 (PDT) X-Gm-Message-State: AEkoousktGeKHqqfwosytrpnsntsiS5kXrTStx+nH6M4PoMC5ILSnD2RehfCZA0xD87/vZ7iwPs665PoTpUEOw== X-Received: by 10.55.107.130 with SMTP id g124mr8669032qkc.61.1470347302209; Thu, 04 Aug 2016 14:48:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.242 with HTTP; Thu, 4 Aug 2016 14:47:41 -0700 (PDT) In-Reply-To: <65975a09-1d96-c03b-ecb2-ab37d91e621c@gmail.com> References: <27c5add4-2c4c-bab1-6ca7-9c191917dd0e@gmail.com> <65975a09-1d96-c03b-ecb2-ab37d91e621c@gmail.com> Date: Fri, 5 Aug 2016 06:47:41 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Adding validate_var_array()/validate_input_array() to which version? From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Rowan, On Fri, Aug 5, 2016 at 6:38 AM, Rowan Collins wrote: > On 04/08/2016 22:25, Yasuo Ohgaki wrote: >> >> My preference is to raise exception to encourage users to handle >> validation error correctly, i.e. terminate script execution, but my >> intention may not be interpreted correctly with or without exception. > > > I know naming things is hard, but I really do think "validation" is not the > correct name for what you are talking about. Search online for "form > validation", and you will see what I mean. > > The correct response to a form validation error is to show a message to the > user with as much detail as possible, not to simply terminate the script and > assume they are trying to attack your application. We are talking about different things. I'll document it clearly in RFC. Thank you! -- Yasuo Ohgaki yohgaki@ohgaki.net