Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95042 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33286 invoked from network); 11 Aug 2016 15:22:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2016 15:22:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=michal.brzuchalski@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=michal.brzuchalski@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: michal.brzuchalski@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-qk0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:33577] helo=mail-qk0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/41-25876-C389CA75 for ; Thu, 11 Aug 2016 11:22:36 -0400 Received: by mail-qk0-f170.google.com with SMTP id t7so7689945qkh.0 for ; Thu, 11 Aug 2016 08:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ywDNkqqVNOOptV/U43db87GgN1CXfzt7xTrMANrZNpY=; b=HCmNjaS5yRFnhDh7VtwvcE60jXTyus+6cg1mottQCeds7gHq8lcVqb7lJ091C77Xg9 lRAUq0EK9d5t+wVcQUXzmXJWc0+BQAeQ3iRKAxtefLHwTwI/2gbCEr+7v9nc8Db5Or9l az9a/DGpZw8xjnLxPhDV+g21lJdb0rbewHJrSORnkGv2U1a27jO4DJIMUdrow86tzUwf VSsd89QFhGtTZwE3d938NAdbuS+WTVFuhg71IRDOvVaJHvDOUmDn30RaYwVXgV9oEkCx FXTucM+9oJ6VsZKly6pu2Yl7Ug0x9B98JjpGccH3zourBaD9zYRCP2Zf0c3DErodF0WO NPSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ywDNkqqVNOOptV/U43db87GgN1CXfzt7xTrMANrZNpY=; b=VIc4OUFmE1ST9fpk7za8TMXkB4CHTRVcsSuW/Jp4tA6CsY0V+cnnnfFQWeB+JUVQ7Y 8tl+w3fJmmTp3JIh7ez+GLZnwSXVvJf6ZjGE0pW7oKh9qdQjtN4GZUL7fGTskC2lm/4t 6N1LwGgeLamOsW+aSLlQ9mxQQyiXJQJ+VMiN/YC4zbx8W63OiaWCbr/aVinYMw/hP8td W3U/h2WuGOViDCP5vjAAwz6kG8fKX5AGQIrd6ADro9B7sHBarunnfc2r28GEdc+bu8HM +jR1DHzz/TsvKIPfMoA447enHpXjzxwquLLxqkMVg5O9Bq6m1C/vmS5gFOi+3XAminum DidA== X-Gm-Message-State: AEkoouuEg99V8tcKC6xCM3H/5tEYFL+lQA1X860uFrne3yufm8c8rpVDS0sP6gMUaW+IIttJIuhBY7rVhFDv3w== X-Received: by 10.55.9.147 with SMTP id 141mr11219463qkj.7.1470928953040; Thu, 11 Aug 2016 08:22:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.53.155 with HTTP; Thu, 11 Aug 2016 08:22:32 -0700 (PDT) Received: by 10.237.53.155 with HTTP; Thu, 11 Aug 2016 08:22:32 -0700 (PDT) In-Reply-To: <8646c3ad-b929-cb0b-bad4-52a0a7160d16@gmail.com> References: <10fbcb03-5de8-4d9a-da1c-7e2bf77937cb@lsces.co.uk> <5657afc7-7569-5fc4-4a5a-27ed786c4fa5@gmail.com> <0825c173-5cb4-7f65-cf34-b45ca30919a3@lsces.co.uk> <8646c3ad-b929-cb0b-bad4-52a0a7160d16@gmail.com> Date: Thu, 11 Aug 2016 17:22:32 +0200 Message-ID: To: Rowan Collins Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a114c4a6cbc69520539cd5506 Subject: Re: [PHP-DEV] Simple variable handling. From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=) --001a114c4a6cbc69520539cd5506 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Wgat about static analysis and IDE support? They probably can handle all those sugarcandies because tgey are sticjed to variable but not with any dynamic rules procedural style. Am I right? 11.08.2016 17:17 "Rowan Collins" napisa=C5=82(a): > On 11/08/2016 15:49, Lester Caine wrote: > >> The question is not how >> you flag an error, but rather when do you check for one. If the 'load' >> function from a database record or the populate from a web form results >> in $age not being valid one handles that situation based on the data >> model. If you are propagating that data after validating has failed then >> the program flow is wrong and adding some exception when you use the >> duff data later does nothing to help? >> > > Fair enough, so in summary, what you're looking for is a more > comprehensive and/or user-friendly version of the filter_* functions? > > That is, methods to: > - associate validation rules to a variable/array key/object property > - manually check whether the validation rules for one or several variable= s > currently pass > > But you are not particularly interested in language-level enforcement or > tracking of whether and when these validation rules have been checked, > because you want to insert the validation at specific points in the > workflow. > > Is that an accurate summary? > > Regards, > -- > Rowan Collins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114c4a6cbc69520539cd5506--