Re: [RFC] Scalar Type Hinting With Casts (re-opening)

From: Date: Sun, 13 Jul 2014 14:33:54 +0000
Subject: Re: [RFC] Scalar Type Hinting With Casts (re-opening)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-75404@lists.php.net to get a copy of this message
On 13 Jul 2014, at 15:31, Zeev Suraski <zeev@zend.com> wrote:

> I think this is a big step in the wrong direction to one of the most
> common auto-conversion use cases out there (HTTP input variables).  See my
> note to Nikita...
> 
> This RFC is a huge deal, I suggest we let more people voice their opinion
> in before changing it in each direction :)
> 
> Zeev

Yes, I might have acted a little too quickly. However, I’m not sure “12a” is such a common
case. With the strict behaviour, foobar(“ 12”) and foobar(“12”) still work, however
foobar(“12 “) unfortunately would not.
--
Andrea Faulds
http://ajf.me/






Thread (250 messages)

« previous php.internals (#75404) next »