Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94827 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94722 invoked from network); 4 Aug 2016 10:30:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2016 10:30:39 -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.65 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.65 mail-wm0-f65.google.com Received: from [74.125.82.65] ([74.125.82.65:33933] helo=mail-wm0-f65.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/85-53111-E4913A75 for ; Thu, 04 Aug 2016 06:30:39 -0400 Received: by mail-wm0-f65.google.com with SMTP id q128so42706948wma.1 for ; Thu, 04 Aug 2016 03:30:38 -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=dTgG2orT+3TB+CnOHwajxN9zesvWmjIv/85FGmf40s0=; b=Xe/ikyAkR01K47o2FlsgWqKFCKgSLbDEZan1MBVn7snYwQT41rKeD0LSPQdAPR5O08 zKXPsTdU4vqj0Um1U4LDSFmm6+BdNZHuOOAM+bv16gHu0kqyOlz8cJZbiqmxxVRKPoV8 c0AXHL0x9wb0H0Y5LIBZFo/P8zuaJD7BxYgvH9f/HiOhLcy8Psy3IW1waCrBW0DFhtVZ 1SXGgiglzBsFjtCb3jyjIZTldXO9v4ZAtB1DX4eZAUDKgouJmlqAKh1m1R/wkX9/Bkun 9N/xMICwIpxJ09T6kTbjLGrpGPcKcB6SpKI7XA1PcF1nYcGRgWInqNg8SiNhimZlXi8N XqyA== 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=dTgG2orT+3TB+CnOHwajxN9zesvWmjIv/85FGmf40s0=; b=lFj/pUAKmb5EiAEtYQn3KSg8vGU9czJdithKnI63s4s0c4AVllO/2HUehqn0Ld2+zr de+SNwwW2TGR8HcmEwcDAHh9K1GQVF22Gb24FXzOdxO2v9+ZwDmQ3rjwhe8c0yliAhNU xrO5+MSz3cdehP0zoqYv/lNIG+z9Dye2pMSgxwYCAxe6K3Vf3T3VzuiluBcR5IYi8d3i ntM4nK9aUbXmxa9CDMNCrp2lVkdZtyW6ZckPzZNP2ZfpmVxSNC433eFi0oyx9ympAF+2 p0QnbQUVa95vhUUyEgrBblonO1s7hjGNGN0HWV//2RJPwC1WJu/LKR3ZHdE+hem34Ljp RAJw== X-Gm-Message-State: AEkooutRsKIhz0o3OMlsObX9I3xxc7TKhEmWcFJLyYyniZjK9QS/PDraxL6FpCzAxuyV5g== X-Received: by 10.28.167.80 with SMTP id q77mr30235532wme.62.1470306635594; Thu, 04 Aug 2016 03:30:35 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id ka6sm12129648wjb.38.2016.08.04.03.30.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 03:30:34 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <5b1c35ca-e2ce-f9ff-4dcb-0ed808908241@gmail.com> Date: Thu, 4 Aug 2016 11:28:45 +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 11:10, Yasuo Ohgaki wrote: > I cannot return or modify referenced > parameter because of raised exception. This is another reason why exceptions are not appropriate for this case. As soon as you make an exception the expected result of something, you end up tying yourself in knots trying to build useful control flow around it. Regards, -- Rowan Collins [IMSoP]