Re: [PHP-DEV] How does error_log open the file?

2008-08-05 Thread Johannes Schlüter
On Mon, 2008-08-04 at 00:52 -0700, mike wrote: I'm curious as to how error_log is opened... Is it opened when an error occurs, as in open/append to, or is the file handle kept open when the PHP fastcgi process is spawned? Depends on configuration in php.ini and some special extensions

Re: [PHP-DEV] How does error_log open the file?

2008-08-05 Thread mike
On 8/5/08, Johannes Schlüter [EMAIL PROTECTED] wrote: Default is to use the sapi's logging mechanism, for example when using the apache module apache writes it to it'S error log in whatever way Apache does that (I think open on server start and then write..) Else it either uses the syslog or

[PHP-DEV] How does error_log open the file?

2008-08-04 Thread mike
I'm curious as to how error_log is opened... Is it opened when an error occurs, as in open/append to, or is the file handle kept open when the PHP fastcgi process is spawned? Essentially I want to be able to provide each client their own PHP error log, i.e. /home/client1/php-error.log But I