Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94803 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43667 invoked from network); 2 Aug 2016 14:39:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2016 14:39:06 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:34992] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/10-42473-980B0A75 for ; Tue, 02 Aug 2016 10:39:05 -0400 Received: by mail-wm0-f41.google.com with SMTP id f65so412044237wmi.0 for ; Tue, 02 Aug 2016 07:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=+rVsEN6S+jfWAmoTA41NHDSQ1nkbHOdX19QVfj4ZhBI=; b=L/YaLeNwvHUwRADIq0HU7JUHAV/S8cAlyj/DOs+q2By+bKsSi7C9iPx25TFgLCplgq Lb42r5tCFBodGOSPhM48K68MOLysXfIVA/CYjc+TmkwM9dMgmKDdfnnawnTqdRxGNhhJ nSuf7XAjcRTNZv68VnJPz/oRln/oJoy/2zj9PJgXt74rTRLBpI0d8JOwVLfIE7VWTH06 CknctSpwwdt2E/kIuA1uFvAyPiy3rm1/s0Y7tkoJYzRKA4eysisZl6Re1gS30lnKfQUC A57KKqQ/7D4/sFcn33xbaF60VJ27ZLoVe1B7yNFe2mhlCSrFzqEcqNmb5l3qz0yM45Mp IJpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=+rVsEN6S+jfWAmoTA41NHDSQ1nkbHOdX19QVfj4ZhBI=; b=QRfNCWtLkWCk39/P8A5141/bVpmUBA5fYW50LieTIA7Kztw+kmrHT0WEMMQvTBnBLd vbmxYVXrK/6HuPwH9oxQoEAtY94o3rJjV10ce5VY3ewgZATjIIW0PFuJQFaDcSl8JmsI 7Pvci95l7lAF462DOlp4PsVdMz0Ob2jUw/cJFt+XBTgilIcY+TRZwSQ0dPDsYHxxgtyI dIGMFNNzVwGbVpPGeo0B66wjdzqiqpM7GcVfX3fKF1aRCDl2uCYQdd/8f4ns7XCGhP2A q4T1HibP3n0G7Kg1UXFrfNfWMM09tiguPkZKaKNjopdaIUH56EkOEwFDQNHBoUOuCpaf wG9g== X-Gm-Message-State: AEkoousXelh/6gQrqWMjpDRzbgsnF+vqrSLW2AR+L66O5Ffuo5nALj5/kztlkLeEMilekg== X-Received: by 10.194.107.130 with SMTP id hc2mr55258814wjb.7.1470148741803; Tue, 02 Aug 2016 07:39:01 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id kc6sm2980972wjb.3.2016.08.02.07.39.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Aug 2016 07:39:01 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <6811e0bd-811c-bd44-2e84-6d08aa8eef9d@gmail.com> Date: Tue, 2 Aug 2016 15:37:21 +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] Re: Adding validate_var_array()/validate_input_array() to which version? From: rowan.collins@gmail.com (Rowan Collins) On 01/08/2016 23:12, Yasuo Ohgaki wrote: > Raising Exception would be prefered. > Any comment raising exception? ExceptionFilterValidate wouldn't > cause much BC, IMO. I don't follow. Do you mean throwing an exception to the existing filter-and-continue functions? If so, that would surely break every single use of those functions. Or do you mean adding a new function which either silently succeeds or throws an exception? That doesn't sound good to me - an exception shouldn't be the expected result of something, and invalid input is an expected condition (just an undesirable one). It's easier to add a throw statement based on a boolean result than to catch an exception and continue with other checks. I may have misunderstood your question, though. Regards, -- Rowan Collins [IMSoP]