Re: STH and the 3 RFCs
| From: | Lester Caine | Date: | Fri, 13 Mar 2015 19:41:21 +0000 |
| Subject: | Re: STH and the 3 RFCs | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84713@lists.php.net to get a copy of this message | ||
On 13/03/15 18:53, guilhermeblanco@gmail.com wrote:
> By considering PHP's nature, having a dual mode is a WTF. I can see myself
> asking multiple times a day "is this file strict or not?" to trace
> potential bugs or type juggling. I do want strict, but I don't think it's
> the right time for PHP to make this move. Userland would have strictness,
> but all internal functions are a weird WTF type juggling mode. I originally
> switched my vote many times in the v3 of the RFC, mainly because PHP
> developers are the ones that would suffer by these configurability on a
> daily basis. I ended up with a YES vote because when considering STH or
> nothing at all, I prefer to have some.
The bigger WTF is perhaps that moving forward one has no idea just what
a third party library is using internally. A case has been made that
this does not matter since calling that library from a non-strict site
will simply work as now, but in that case the library is not designed to
handle non-strict input. It assumes that the strict check happens, where
a well designed 'weak' library will be handling the edge cases properly.
It not simply a matter of "is this file strict or not?" but rather "what
happens when I pass the wrong data?".
--
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