Re: How does error_log open the file?

From: Date: Tue, 05 Aug 2008 22:11:48 +0000
Subject: Re: How does error_log open the file?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-39677@lists.php.net to get a copy of this message
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...

« previous php.internals (#39677) next »