trigger_error() when using php cli
| From: | Tom Worster | Date: | Wed, 07 Jan 2009 17:55:55 +0000 |
| Subject: | trigger_error() when using php cli | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-285575@lists.php.net to get a copy of this message | ||
php is delivering error messages to STDERR when i call trigger_error() in
the script. i'm using the command:
php -c /usr/local/etc/php.ini -f script.php
and the config file has log_errors and error_log set correctly afaict (it
works for scripts run via apache).
is this to be expected (and hence i need to rewrite with error_log()) or is
the maybe some other explanation?
tom