Re: [PHP4BETA] Move php_log_err() to SAPI?

From: Date: Fri, 04 Feb 2000 23:30:48 +0000
Subject: Re: [PHP4BETA] Move php_log_err() to SAPI?
References: 1 2 3 4 5 6  Groups: php.version4 
Request: Send a blank email to php-version4+get-9840@lists.php.net to get a copy of this message
On Sat, 05 Feb 2000, Sascha Schumann wrote: > > Ok, my question still stands: is there any way for CGI binary to detect > > that it's being run from the command-line instead of through the server? > > Where do you need to differentiate? I need to differentiate because when run in command-line mode we want to only respect either log_errors or display_errors setting. If you respect both then the error output looks like this: PHP Fatal error: Call to undefined function: session_se_cookie_params() in ./test.php on line 4 <br> <b>Fatal error</b>: Call to undefined function: session_se_cookie_params() in <b>./test.php</b> on line <b>4</b><br> -Andrei * Programming is an art form that fights back. *

« previous php.version4 (#9840) next »