Re: Scalar Type Hinting

From: Date: Thu, 08 Mar 2012 10:13:21 +0000
Subject: Re: Scalar Type Hinting
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Thu, Mar 08, 2012 at 11:06:56AM +0200, Arvids Godjuks wrote:
> > Type hints are meant to
> > filter input from external sources
> 
> Correction, it should read like this:
> Type hints are _not_ meant to filter input from external sources

+1

What they will do is to catch where input from external sources has NOT been
correctly filtered -- but that should be a rare event and indicative of a bug.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>


Thread (43 messages)

« previous php.internals (#58774) next »