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 loaded. 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 open the error file for every message and writing itself... But all of that can be overwritten by extension (Xdebug for isntance overwrites the error handling, others do, too) johannes P.S. Have some patience when asking question to this list... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
