]> git.pld-linux.org Git - packages/php.git/blobdiff - php-cli.ini
move php.1 manual to -program (link to actual php-cli)
[packages/php.git] / php-cli.ini
index 5e6e93baed376d5dd9d75cd3016fb48bdd888f02..9bdb24ad34b2a67bac61eb31a68ef40558d158dc 100644 (file)
@@ -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
This page took 0.04068 seconds and 4 git commands to generate.