SOURCES: php-cli.ini - fatal errors to stderr only, see http://blog.delfi.e...

glen glen at pld-linux.org
Tue Feb 17 13:18:47 CET 2009


Author: glen                         Date: Tue Feb 17 12:18:47 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fatal errors to stderr only, see http://blog.delfi.ee/node/18142

---- Files affected:
SOURCES:
   php-cli.ini (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/php-cli.ini
diff -u SOURCES/php-cli.ini:1.5 SOURCES/php-cli.ini:1.6
--- SOURCES/php-cli.ini:1.5	Tue Feb 17 12:39:08 2009
+++ SOURCES/php-cli.ini	Tue Feb 17 13:18:41 2009
@@ -8,25 +8,14 @@
 ; copying whole large php.ini.
 
 [PHP]
-; 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
-; instead (see below).  Keeping display_errors enabled on a production web site
-; may reveal security information to end users, such as file paths on your Web
-; server, your database schema or other information.
-;
-; possible values for display_errors:
-;
-; Off        - Do not display any errors
-; stderr     - Display errors to STDERR (affects only CGI/CLI binaries!)
-; stdout (On) - Display errors to STDOUT
-display_errors = stderr
+; This combination (display_errors=off; log_errors=on; error_log ="") allows
+; fatal errors go to STDERR only. We set these separately here, that we won't
+; be affected by global php.ini
+display_errors = Off
+log_errors = On
 
-; Log errors into a log file (server-specific log, stderr, or error_log (below))
-; As stated above, you're strongly advised to use error logging in place of
-; error displaying on production web sites.
-;
-; In CLI it's pointless to log it as we already print them to stderr.
-log_errors = Off
+; Disable error logging, in case it was enabled in global php.ini
+error_log = ""
 
 [Session]
 ; argument passed to save_handler in the case of files, this is the
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/php-cli.ini?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list