Re: [PHP] trigger_error() when using php cli

2009-01-07 Thread ceo
As I recall, PHP CLI overrides the error_log setting and uses STDERR by design. You'll have to re-direct it elsewhere in the shell. Or a custom error_handler that uses a specific file name in error_log call. Using error_log alone will not help. -- PHP General Mailing List (http://www.

[PHP] trigger_error() when using php cli

2009-01-07 Thread Tom Worster
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