pollita Fri Nov 28 21:49:58 2003 EDT
Modified files:
/php-src php.ini-recommended php.ini-dist
Log:
Update php.ini-* with E_STRICT error reporting level. -dist excludes E_STRICT,
-recommended includes it.
Index: php-src/php.ini-recommended
diff -u php-src/php.ini-recommended:1.145 php-src/php.ini-recommended:1.146
--- php-src/php.ini-recommended:1.145 Thu Nov 20 02:46:46 2003
+++ php-src/php.ini-recommended Fri Nov 28 21:49:57 2003
@@ -261,6 +261,9 @@
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
+; E_STRICT - run-time notices, enable to have PHP suggest changes
+; to your code which will ensure the best interoperability
+; and forward compatability of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
@@ -272,6 +275,10 @@
;
; Examples:
;
+; - Show all errors, except for notices and coding standards warnings
+;
+;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
+;
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
Index: php-src/php.ini-dist
diff -u php-src/php.ini-dist:1.200 php-src/php.ini-dist:1.201
--- php-src/php.ini-dist:1.200 Thu Nov 20 02:46:46 2003
+++ php-src/php.ini-dist Fri Nov 28 21:49:57 2003
@@ -246,6 +246,9 @@
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
+; E_STRICT - run-time notices, enable to have PHP suggest changes
+; to your code which will ensure the best interoperability
+; and forward compatability of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
@@ -265,9 +268,9 @@
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
-; - Show all errors except for notices
+; - Show all errors except for notices and coding standards warnings
;
-error_reporting = E_ALL & ~E_NOTICE
+error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php