From: mgilbert at kcm dot org Operating system: Windows Server 2003 PHP version: 4.3.7 PHP Bug Type: IIS related Bug description: Syslog NOT logging Errors to the Event Viewer
Description: ------------ This error was orrigionally logged at an IIS forum. The Forum administrator had the same problem and sugested that we logg this error on the PHP web site. Below is some of the text from our origional message. This is the link to the origional message: http://www.iis-resources.com/modules/newbb/viewtopic.php?topic_id=1560&forum=5 We recently migrated a website from Windows 2000 to Windows 2003 using the iis 6.0 Migration tool provided by Microsoft. PHP is installed and seems to work fine with the exception of a challenge one of my developers approached me with recently. This function works fine on Windows 2000, but doesn't on Windows 2003. He has some code to log errors to the system event log but the events are not getting logged. We have logging enabled in the PHP.ini : ; Log errors to syslog (Event Log on NT, not valid in Windows 95). error_log = syslog I've attempted giving IUSR_website account more permissions on the box (including administrative rights for a very short period of time to make sure that NTFS permissions are not blocking anything) Any information you could provide would be greatly appreciated. Thanks, Reproduce code: --------------- if ($priority <> "") { openlog("Website", LOG_ODELAY, LOG_USER); syslog($priority, $error_log); closelog(); } Expected result: ---------------- It should log an event in the event Windows Event Viewer. Actual result: -------------- Did not log the event. -- Edit bug report at http://bugs.php.net/?id=28988&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28988&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28988&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28988&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28988&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28988&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28988&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28988&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28988&r=support Expected behavior: http://bugs.php.net/fix.php?id=28988&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28988&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28988&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28988&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28988&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28988&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28988&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28988&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28988&r=float