]> granicus.if.org Git - php/commitdiff
Fixed wrong usage of error_reporting directive
authorKalle Sommer Nielsen <kalle@php.net>
Thu, 12 Feb 2009 14:36:32 +0000 (14:36 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Thu, 12 Feb 2009 14:36:32 +0000 (14:36 +0000)
php.ini-dist
php.ini-recommended

index a9ce9a122927d960bc2d6a94d336ef6773e242f1..c58336be7b1756b0087e0a5168475129ea8b6bbc 100644 (file)
@@ -222,7 +222,7 @@ memory_limit = 128M      ; Maximum amount of memory a script may consume (128M)
 
 ; error_reporting is a bit-field.  Or each number up to get desired error
 ; reporting level
-; E_ALL             - All errors and warnings (doesn't include E_STRICT)
+; E_ALL             - All errors and warnings (includes E_STRICT)
 ; E_ERROR           - fatal run-time errors
 ; E_RECOVERABLE_ERROR     - almost fatal run-time errors
 ; E_WARNING         - run-time warnings (non-fatal errors)
@@ -232,7 +232,7 @@ memory_limit = 128M      ; Maximum amount of memory a script may consume (128M)
 ;                     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
+; E_STRICT         - run-time notices, enable to have PHP suggest changes
 ;                     to your code which will ensure the best interoperability
 ;                     and forward compatibility of your code
 ; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
@@ -251,11 +251,11 @@ memory_limit = 128M      ; Maximum amount of memory a script may consume (128M)
 ;
 ;   - Show all errors, except for notices and coding standards warnings
 ;
-;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
+;error_reporting = E_ALL | ~E_NOTICE | ~E_STRICT
 ;
 ;   - Show all errors, except for notices
 ;
-;error_reporting = E_ALL & ~E_NOTICE
+;error_reporting = E_ALL | ~E_NOTICE
 ;
 ;   - Show only errors
 ;
@@ -263,7 +263,7 @@ memory_limit = 128M      ; Maximum amount of memory a script may consume (128M)
 ;
 ;   - Show all errors, except coding standards warnings
 ;
-error_reporting  =  E_ALL & ~E_STRICT
+error_reporting  =  E_ALL | ~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
index 6582dd398b364fcf2c843138a304b241972d7f84..06a5bdcea5fd770cfc0c481189b6a0b47cef430c 100644 (file)
@@ -259,7 +259,7 @@ memory_limit = 128M      ; Maximum amount of memory a script may consume (128M)
 
 ; error_reporting is a bit-field.  Or each number up to get desired error
 ; reporting level
-; E_ALL             - All errors and warnings (doesn't include E_STRICT)
+; E_ALL             - All errors and warnings (includes E_STRICT)
 ; E_ERROR           - fatal run-time errors
 ; E_RECOVERABLE_ERROR     - almost fatal run-time errors
 ; E_WARNING         - run-time warnings (non-fatal errors)
@@ -288,11 +288,11 @@ memory_limit = 128M      ; Maximum amount of memory a script may consume (128M)
 ;
 ;   - Show all errors, except for notices and coding standards warnings
 ;
-;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
+;error_reporting = E_ALL | ~E_NOTICE | ~E_STRICT
 ;
 ;   - Show all errors, except for notices
 ;
-;error_reporting = E_ALL & ~E_NOTICE
+;error_reporting = E_ALL | ~E_NOTICE
 ;
 ;   - Show only errors
 ;
@@ -300,7 +300,7 @@ memory_limit = 128M      ; Maximum amount of memory a script may consume (128M)
 ;
 ;   - Show all errors, except coding standards warnings
 ;
-error_reporting  =  E_ALL & ~E_STRICT
+error_reporting  =  E_ALL | ~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