#8314 [Asn]: Setting the error_log = syslog does not work on Win2k

From: Date: Sun, 18 Jul 2004 11:41:30 +0000
Subject: #8314 [Asn]: Setting the error_log = syslog does not work on Win2k
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62568@lists.php.net to get a copy of this message
ID: 8314 Updated by: andrey@php.net Reported By: zak@php.net Status: Assigned Bug Type: PHP options/info functions Operating System: Win2k pro -PHP Version: 5CVS +PHP Version: 5.1CVS Assigned To: wez New Comment: changing version, probably will be fixed in 5.1 Previous Comments: ------------------------------------------------------------------------ [2003-10-08 07:22:31] wez@php.net Won't fix for PHP 4, but will fix for PHP 5. ------------------------------------------------------------------------ [2003-10-07 18:57:52] sniper@php.net Assuming Wez wants to do something about this.. ------------------------------------------------------------------------ [2003-10-07 12:36:05] wez@php.net The problems with allowing PHP to register arbitrary event sources are: 1. PHP might not have permissions to write to that part of the registry, so it might not even be able to do it. 2. If it does, it could overwrite system defined message sources -> big problem for shared hosters. IMO, it is better to register a single PHP event source at installation time, and adapt the syslog code to log messages using PHP as the source and output the user-defined source in the log message itself. ------------------------------------------------------------------------ [2003-10-07 12:27:52] rick_g22 at yahoo dot com I see. In any case, I think it'll be easy to register PHP as the source for PHP-error logs, right? Thanks! (This is my last comment) ------------------------------------------------------------------------ [2003-10-07 12:18:08] wez@php.net No, its not possible. All eventcreate does is register itself as the source. Try this: eventcreate /t error /id 100 /l application /so foobar /d "This is a message" and look here in the registry afterwards: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\foobar ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/8314 -- Edit this bug report at http://bugs.php.net/?id=8314&edit=1

« previous php.bugs (#62568) next »