Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95043 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35072 invoked from network); 11 Aug 2016 15:34:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2016 15:34:24 -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:38851] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/91-25876-FFA9CA75 for ; Thu, 11 Aug 2016 11:34:23 -0400 Received: by mail-wm0-f48.google.com with SMTP id o80so3739013wme.1 for ; Thu, 11 Aug 2016 08:34:23 -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=4wkJI7Wt/LM1/VdBt4HGqXZGmVAUMDnQ8Nycd81k+eM=; b=K1tWfPukoHdnUyBZGBfnuZc6BVfLXB6cI4kZnwsJYZ/GNbH12T4bd4OUwco4iewN2I Xb5xW9hKsOHgRC886R5HLRO8Z5EDdlvcnDoqN413lPuSh42+42LTQHozVpQRLB8CmqKa 9sVUMgYpRc5iY/kXFCzGycnC70bYABhJDxTyXOXCmK7eZY+IFM2Gh2Lqx2PzTJqkJihh /kB0OmxFszsVff3+OP24u++SL/rFSLSFrVpNY4iZZZniXvh3wITY7Xwauhs8sK31jdOX CrP2Q9TghPpG6dfNrezWSC1AWo+WgdULaMwQ16C8shcL2cHgRBupF7iiyxeGjEBSqb5Z h4tg== 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=4wkJI7Wt/LM1/VdBt4HGqXZGmVAUMDnQ8Nycd81k+eM=; b=Ry0CJyqaXzzT4OoP8Q8ze0YVAU2O/weJMeuQeZWLLS9fJK+ctwJ5+0Lo68GC3RNrBa C0xnujmzdYBhHjpO49HNib8ru479O6eUtNuZoZ6f5FHUpoRLJye4yzenr1ayPipAz+L4 27vZmrMVh0m1En6EMsv/KvYjniW5Kjc5JSNpn0c0zlVLmHytS0a6ZgL4cnVuUEHXNM2q YnNQyMYevdd4vvKw738Q+8jRqDdbRrXvdNNW6SrVPVf3hZbQMIKqfcXNiLXEcmhQBJvo BrfMfRnVcbMTLjkH/9maGzSZiMm6KwTHeyUeEWmZ9rCz57/MUVX/aVqtDUEKMM1Wdmbf gd0g== X-Gm-Message-State: AEkoousCWPA/drSyPofyijKsaPOypgBrpn52OOFyzq9FRGSFr/ioocChxruVMtMU55DkyA== X-Received: by 10.194.0.211 with SMTP id 19mr10112132wjg.124.1470929660162; Thu, 11 Aug 2016 08:34:20 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id uo4sm3205749wjc.36.2016.08.11.08.34.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Aug 2016 08:34:19 -0700 (PDT) To: PHP Internals List 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> Message-ID: <11953f80-37d1-3321-c579-e071aa57e2cd@gmail.com> Date: Thu, 11 Aug 2016 16:31:52 +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: 8bit Subject: Re: [PHP-DEV] Simple variable handling. From: rowan.collins@gmail.com (Rowan Collins) On 11/08/2016 16:22, MichaƂ Brzuchalski wrote: > 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? Yep, that's a good point, add "machine-friendly" alongside "user-friendly" in my previous mail. :) That is, if there is a comprehensive list of standard filters, IDEs and other tools can build them in and give useful hints. I guess it might also be possible to have an inspection of "validation rule assigned to variable appears to never be checked" in some cases. In case it's not clear, I would welcome a smarter syntax to replace filter_* functions, as I think they're pretty unreadable as is. Regards, -- Rowan Collins [IMSoP]