Re: [PHP4BETA] Move php_log_err() to SAPI?
| From: | Andrei Zmievski | Date: | Thu, 03 Feb 2000 02:57:24 +0000 |
| Subject: | Re: [PHP4BETA] Move php_log_err() to SAPI? | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9709@lists.php.net to get a copy of this message | ||
At 12:51 AM 2/3/00 +0200, Zeev Suraski wrote:
>Me too. There should be an entry in the sapi_module structure that knows
>how to log a char * string. Then, the php_log_err() would have the logic
>of creating the format + args into the result string, and then it'd call
>the SAPI logging function.
Exactly the same idea that I had.
>Andrei - where stderr goes in CGI mode depends on under which server you're
>running. In Apache, for instance, it'd go to the error_log. In other
>servers, it may be different.
So, this is not going to help when CGI binary is run from command line and
log_errors and display_errors are both set in config file - we'll still get
both HTML and non-HTML versions of the error.
-Andrei