Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95814 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73112 invoked from network); 8 Sep 2016 23:00:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2016 23:00:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:50520] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/67-61313-D7DE1D75 for ; Thu, 08 Sep 2016 19:00:13 -0400 Received: (qmail 6757 invoked by uid 89); 8 Sep 2016 22:59:59 -0000 Received: by simscan 1.3.1 ppid: 6750, pid: 6753, t: 0.1528s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.7?) (lester@rainbowdigitalmedia.org.uk@81.138.11.136) by mail4.serversure.net with ESMTPA; 8 Sep 2016 22:59:59 -0000 To: "internals@lists.php.net" References: <232F1604-2211-4351-B830-EDC958A25D6D@strojny.net> <2de35db0-9974-cc96-83dd-3d2dbd48f7f8@lsces.co.uk> <5b72e9da-068a-bc79-82c2-f36f723f42bb@gmail.com> <73a3293b-4c5a-41ad-526b-1653b68cb2c2@gmx.de> Message-ID: <613edbbe-6a9b-3c82-162e-f13824c836a8@lsces.co.uk> Date: Thu, 8 Sep 2016 23:59:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: <73a3293b-4c5a-41ad-526b-1653b68cb2c2@gmx.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module From: lester@lsces.co.uk (Lester Caine) On 08/09/16 22:56, Christoph M. Becker wrote: > And it can even work without autoboxing; just wrap the scalars in > objects manually. And we come full circle. YES everybody can add their own user land wrappers to do this, but if code is built into the core to provide a standard to work with then we don't have everybody re-inventing the wheel. And there is no need to 'Add validation functions to filter module' simply because that code already exists in the right place ... wrapping the base variable. Some of the elements of proper variable validation have been squeezed in via the 'strict mode, and other soft type rules, where a simple expansion to a basic element will cover just about everything everybody is demanding? We don't need a strictly typed language but if strict rules can be added to the core validation functions then we have much better flexability to use them or not, and none of the debate of where 'strict mode=1' enables it. Just as a read_only rule gets rid of the need for yet another whole family of classes. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk