Bug #2719: Syslog functions permanently change tident and facility

From: Date: Sat, 13 Nov 1999 17:24:27 +0000
Subject: Bug #2719: Syslog functions permanently change tident and facility
Groups: php.dev 
Request: Send a blank email to php-dev+get-12448@lists.php.net to get a copy of this message
From: giannici@neomedia.it Operating system: OpenBSD 2.5 i386 PHP version: 3.0.12 PHP Bug Type: Other Bug description: Syslog functions permanently change tident and facility If PHP is run as an Apache module, and a script use the openlog() function, it changes the "ident" and "facility" of the current thread. So, if Apache uses syslog to log its errors (ErrorLog syslog), all subsequent errors are sent to the facility set by the previous PHP script. Moreover, it is possible that the "ident" parameter points to a memory location now freed, so garbage apperas into the logs!

« previous php.dev (#12448) next »