Re: E_STRICT

From: Date: Wed, 12 Jul 2006 23:20:57 +0000
Subject: Re: E_STRICT
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-24363@lists.php.net to get a copy of this message
Hello, On 7/13/06, Lukas Smith <lsmith@php.net> wrote:
Strict Standards: Declaration of Europe::get_countries() should be compatible with that of Scandinavia::get_countries() in - on line 14 So I dont really see where its killing a fly with a tank either.
That's why I said it is killing a tank (userland) with a fly (adding this prefiy internally).
All that people then need to do is write a simple regexp, that filters out the version number in the E_STRICT notice and pass it off to version_compare(). Very trivial to implement in userland, nothing more than changing a few strings in PHP core. End of story, problem solved.
if foo-1.2.1 is E_STRICT compliant with 5.1.4 and foo-1.2.2 with 5.2.0, update to 1.2.2 must be the way. It is the safest way, the past shown us that some E_STRICT can be related to (sometimes critical) bugs and we should treat them as bugs. Also, I do not like the additions of pedantic E_STRICT, but that's another issue. I would hate to start to add such notice detections in any of my code, including pear. --Pierre

« previous php.internals (#24363) next »