Re: PHP5 only sure .. E_STRICT?

From: Date: Tue, 11 Jul 2006 22:50:35 +0000
Subject: Re: PHP5 only sure .. E_STRICT?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43388@lists.php.net to get a copy of this message
Markus Tacker wrote:
So, they say what's E_STRICT will not work in PHP6. What's not may become E_STRICT in future releases of PHP.
No the question was as follows, in the word of Michael: "The key is we would like to know if we can rely that there are no things that throw E_STRICT in a minor version that don't work in a lower minor version" The answer to this question is no, we cannot rely on this. After the obviously heated debate with Marcus we talked in a query in the language of love (also known as german) and we got to a solution that I think is workable for us. All E_STRICT notices would start with an easily parseable string that defines the version in which the given E_STRICT notice was added. This would make it possible for us to provide a filter function that people could use in customer error handlers that would enable them to filter out any E_STRICT error messages they wish to ignore based on the lowest PHP version they want to care about. So say you support PHP 5.1.3 as the lowest PHP version for a given package. Now PHP 5.2 adds a new E_STRICT notice if you do not use feature not yet available in PHP 5.1.3. Since you do not want to increase the required version just yet you can still keep E_STRICT enabled and simply register an error handler in which you call our filter method which you configure to ignore all E_STRICT notices added since PHP 5.1.3. This solution would not require any large changes in PHP internals. They would simply need to make sure that all new E_STRICT messages follow this defined schema. regards, Lukas

« previous php.pear.dev (#43388) next »