Add a third php.ini, php.ini-dev
This should have the preferred settings for a development environment
- Davey
Jani Taskinen wrote:
Perhaps you should have noticed that the errors in php.ini-recommended
are logged so whatever the error level is shouldn't matter.
And I don't think this file is read-only everywhere? :)
--Jani
On Sat, 18 Jun 2005, Andi Gutmans wrote:
Thanks for spotting that. Not sure how it got in there.
I removed E_STRICT from the default error_reporting in
php.ini-recommended.
At 01:24 PM 6/18/2005 +0100, Nicholas Telford wrote:
Hello everyone,
It seems that E_STRICT is on by default in php.ini-recommended as of 5.1
I think the real issue here is nothing to do with E_STRICT being too
strict, it does what it says, and as Andi has already said, it's
there as a means of best practice checking for pedantic developers.
The problem is that far too many people look at the distribution, see
"php.ini-recommended" and think that they should be using it, this
isn't to say that they shouldn't, but they should at least be aware
that -recommended means that everything is set up to be as tight as
possible.
I propose changing php.ini-recommended's error reporting level to
simply E_ALL. Those developers who require E_STRICT know how to turn
it on and will do so.
I agree with Sara that E_STRICT could probably do with expanding,
having it simply checking for depreceated stuff is all well and good,
but it's name implies that it will alert the developer to anything
not considered strictly correct coding practice.
Since this thread spawned off the one about adding public to PHP4.4,
it's probably not worth it, not due to backwards compatability (try
running code written for 4.3.x under 4.0.0...), but mostly because
it'd effectively be creating an intermediary branch between PHP 4 and
PHP 5 that would be neither one nor the other. It's probably just
best to allow people to make the move to PHP 5 over a longer period
of time. Besides, as Andrey said, you can just insert the keywords
and have them commented out until the entire app is ported.
Sorry for the rather lengthy post, I've been watching these
discussions with great interest over the last few days and have only
now had the chance to post my thoughts.
Nicholas Telford
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php