Ferenc Kovacs wrote:

Please Lester, could you stop pretending that E_STRICT errors will crash your
application and kill all the kittens?
There are a bunch of people (myself included) who tries to write E_STRICT free
code so that our application is fast and bugfree?
Yes, there are people who ignore E_STRICT and E_DEPRECATED and I agree that
having a zillion of those in the PEAR packages is a wrong thing.
But currently it is the way to remove a feature: deprecate it both in the code
and the manual, advertise in the release announcement, and remove it in the next
version, hence people who are interested in keeping up with the changes will
know what do they need to check and change.

I'm not going to go back and list the problems. E_STRICT errors DO cause problems running legacy code. I've had plenty of white screens until E_STRICT was switched back off in PHP5.4! Things that are just warnings in PHP5.3. Since this is optional, some people 'opt' to ignore the warnings, just as they ignore the E_DEPRECATED ones. The problem comes as in the case of $this in static functions where the optional fixes are used to allow the code to run. PHP5.2 code works in 5.3 if warnings are hidden, but there is no guarantee the same code will run in 5.4 and it may well now blow up in 5.5.

So I repeat the question, what is the point of providing a switch which disables warning such as over the $this and then pulling the plug on it in a later version. This is the exact sort of activity that I have been moaning about all along. PHP5.3 and PHP5.4 introduced changes that should ideally have been reserved for a major update. PHP5 code should run without problems and complain in ANY later version of PHP5, not just some. That is what BC is all about! For a LONG time we could even write PHP4 code that ran in PHP5.

--
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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to