Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94839 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43544 invoked from network); 4 Aug 2016 21:38:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2016 21:38:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:34629] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/81-33134-8E5B3A75 for ; Thu, 04 Aug 2016 17:38:48 -0400 Received: by mail-wm0-f48.google.com with SMTP id q128so4665329wma.1 for ; Thu, 04 Aug 2016 14:38:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=I8WbGdWuysfqCwbjOjxtX2ql70iiP5IrvxUD9fbWrJE=; b=MyBNQsVyZhqpo7FOjkzC5IdKbTBrNbbUJkCCdkPhiw9q8vfCqrNkT0W9LXG9p5H/NB djAw2pyPPVBRN8OG4P7kEySe3/8POPU2IM32sv+TKgODjmfiwU9Yi8lwfHpLyrjdH/Uw O2j5baAL7jtItTRLnjx7qFyoykEINCIMMORM4gV48eNlA67QDFFwyifUqBea7rwtJufh XzPz8WtfqFJCte7YVwMAhRl/q1bTQYAJNP28W/T+w9IYOCpxOtIh4C4mTzbQPJwpXMa1 +PdvrZ0ltv5qPBOpqnX5oRzk/evL2QtJHaER+X0Dr7G9E71Ty2I1nF+QloN2Pgak3WHL Sxog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=I8WbGdWuysfqCwbjOjxtX2ql70iiP5IrvxUD9fbWrJE=; b=mWlteXNUBUHFNp9BR7goQxAg/lt05lInNK17Nf9tIKY+5EU960fHzXh8aAONLD1TWx TT7V+Kyrvj1wxgEV83iwrf5w8cgoch13F9CAZvQbYflgEqtvE1HizxD/JUMuq82PSBsQ ufJjKXp30B/jHwg/SBKNSVOLnQp9LSXos6z9K2cON+kfHJjtc6CFNfZlTpkczYFdDs/N DxObvsxRo8Sot/iKaEt8EfKZaAUz2YYPwMKQqBhXhG/SUgUm3MPGFEcuGlHZCxX/J/Xb E1ggWXVYjtl4oJ4lMmPlL98m7IUmEm6kF4oETSb0xHmm2Q4oN0V0wdYzhjrdA+Us07Qu jKog== X-Gm-Message-State: AEkoous51mMCWK5Q/N5AnU4z6JLMML+3qLIDRUlFm3oJ8LpK78DK/8EPfiB9ZsMFi4WtMw== X-Received: by 10.194.136.196 with SMTP id qc4mr76101578wjb.136.1470346725307; Thu, 04 Aug 2016 14:38:45 -0700 (PDT) Received: from [192.168.1.5] ([95.148.161.240]) by smtp.googlemail.com with ESMTPSA id f10sm14652349wje.14.2016.08.04.14.38.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 14:38:44 -0700 (PDT) References: <27c5add4-2c4c-bab1-6ca7-9c191917dd0e@gmail.com> To: "internals@lists.php.net" Message-ID: <65975a09-1d96-c03b-ecb2-ab37d91e621c@gmail.com> Date: Thu, 4 Aug 2016 22:38:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Adding validate_var_array()/validate_input_array() to which version? From: rowan.collins@gmail.com (Rowan Collins) 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. Regards, -- Rowan Collins [IMSoP]