Bug #72806 [NEW]: syslog issue with Event Viewer

From: Date: Wed, 10 Aug 2016 18:55:29 +0000
Subject: Bug #72806 [NEW]: syslog issue with Event Viewer
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203176@lists.php.net to get a copy of this message
From:             bill at mcilhargey dot com
Operating system: Windows Server 2012 R2
PHP version:      7.0.9
Package:          Windows Installer
Bug Type:         Bug
Bug description:syslog issue with Event Viewer

Description:
------------
Starting with PHP 7    (PHP 5 works fine) the PHP7.dll is missing the
windows event viewer logs 2 / 3 information to work on the events

For example:

In PHP 5 this reports to Windows Event Log as
Information: myapplication Something has happened
Yellow warning: myapplication Something bad has happened

In PHP7 when properly configured to point to the PHP7 dll location the
following error is presented



The description for Event ID 3 from source PHP-7.0.9 cannot be found.
Either the component that raises this event is not installed on your
local computer or the installation is corrupted. You can install or
repair the component on the local computer.

If the event originated on another computer, the display information had
to be saved with the event.

The following information was included with the event: 

myapplication
Something bad has happened



The description for Event ID 2 from source PHP-7.0.9 cannot be found.
Either the component that raises this event is not installed on your
local computer or the installation is corrupted. You can install or
repair the component on the local computer.

If the event originated on another computer, the display information had
to be saved with the event.

The following information was included with the event: 

myapplication
Something has happened



Test script:
---------------
<?php

if(function_exists('syslog')) {
openlog('myapplication', LOG_NDELAY, LOG_USER);
syslog(LOG_NOTICE, "Something has happened");
syslog(LOG_ERR, "Something bad has happened");
} else {
echo "nope";
}

?>

Expected result:
----------------
Information: myapplication Something has happened
Yellow warning: myapplication Something bad has happened

Actual result:
--------------
The description for Event ID 3 from source PHP-7.0.9 cannot be found.
Either the component that raises this event is not installed on your
local computer or the installation is corrupted. You can install or
repair the component on the local computer.

If the event originated on another computer, the display information had
to be saved with the event.

The following information was included with the event: 

myapplication
Something bad has happened



The description for Event ID 2 from source PHP-7.0.9 cannot be found.
Either the component that raises this event is not installed on your
local computer or the installation is corrupted. You can install or
repair the component on the local computer.

If the event originated on another computer, the display information had
to be saved with the event.

The following information was included with the event: 

myapplication
Something has happened


-- 
Edit bug report at https://bugs.php.net/bug.php?id=72806&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72806&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72806&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72806&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72806&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72806&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72806&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72806&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72806&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72806&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72806&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72806&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72806&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72806&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72806&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72806&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72806&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72806&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72806&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72806&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72806&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#203176) next »