Re: date() behaviour changed in 5.1?
| From: | Andrei Zmievski | Date: | Wed, 16 Nov 2005 01:13:34 +0000 |
| Subject: | Re: date() behaviour changed in 5.1? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20042@lists.php.net to get a copy of this message | ||
Perhaps, but I would maintain that passing "123abc" and having it interpreted as 123 is still wrong.
-Andrei
On Nov 15, 2005, at 9:42 AM, Wez Furlong wrote:
I can't think of any case where you'd want to error out when given '100 ' if it would accept '100' quite happily. I'd lean towards a single cast semantic for this, and remove that strict checking flag from zend_parse_parameters(); lazy dynamic type handling for primitive data types is one of the cornerstones of PHP IMO. --Wez.