On Fri, Dec 19, 2003 at 06:06:40PM +0200, Lenar L�hmus wrote:
>
> It doesn't work this way in PHP4 anyway. So if you really must use this
> feature (I think I would) you can live with being locked to PHP5.
But then in order to have an error handler work in both PHP 5 and PHP 4
while avoiding the SLEW of var depricated notices, everyone is going to
have to rewrite their error handlers to make them check for
defined(E_STRICT) and then check if the error number is E_STRICT. A royal
pain for a lot of PHP programmers, let alone the masses just using
packages they downloaded from somewhere who will start to see var
depricated notices all of a sudden and have no clue what's going on.
> -10 for anyhting like 'use current error_reporting() setting' or 'just
> change the behavior from PHP4 to PHP5' (you need version_compare() again).
Please provide a real world example of why you would need version compare.
Error handlers written for PHP 4 (expecting that all errors will go to the
handler) will operate just fine under the new system (where only errors
meeting the error reporting mask get sent to the handler).
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php