Why would anyone have E_ALL switched on anywhere but a dev box?

Working with Phorum, I get to peer into lots of different hosting companies setups when helping my users. I have seen many hosts that do have E_ALL enabled and do not log errors because they have no way to provide that log back to their users. Nor would the users have a comprehension of the error log.

For the enterprise, I would believe that nearly all production servers shield error output from web pages in one way or another. However, I believe that PHP has its roots in the small web site. If you start making it hard on them to upgrade, you will see hosts that never upgrade their PHP versions.

That should be as simple as explicitly offering

;E_ALL & ~E_STRICT

in the php.ini (and of course in the upgrade notes too). PHP 5 has been out there for 2 years now, I find it hard to believe that anyone involved - host or user - isn't aware that E_STRICT is on its way. Greg wrote earlier that the biggest issue PEAR has with E_STRICT nowadays comes when non-declared statics are called. Seriously, people writing that kind of code aren't likely to be naive users.

I think it's going to be far worse if code that runs cleanly under PHP 4 throws a fatal error in PHP 6 with no mention of it being problematic in between!

- Steph

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

Reply via email to