php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72806 syslog issue with Event Viewer
Submitted: 2016-08-10 18:55 UTC Modified: 2016-08-10 22:15 UTC
Votes:7
Avg. Score:4.4 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:3 (42.9%)
Same OS:3 (42.9%)
From: bill at mcilhargey dot com Assigned:
Status: Wont fix Package: Windows Installer
PHP Version: 7.0.9 OS: Windows Server 2012 R2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bill at mcilhargey dot com
New email:
PHP Version: OS:

 

 [2016-08-10 18:55 UTC] bill at mcilhargey dot com
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-10 22:15 UTC] ab@php.net
-Status: Open +Status: Wont fix
 [2016-08-10 22:15 UTC] ab@php.net
Thanks for the report. The installer is not supported with 5.4 AFAIR. From that version on PHP for Windows is only distributed as a zipball. Still you can manually add the requiered information into the registry by adjusting this file:

http://git.php.net/?p=php-src.git;a=blob;f=win32/syslog.reg;h=2974bfbd485950e651f67aea5e35c5fc91c6b2a2;hb=HEAD

Thanks.
 [2017-04-24 15:38 UTC] saeed_sol at yahoo dot com
The description for Event ID 3 from source PHP-7.1.4 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: 

phpMyAdmin[868]
user denied: saeed (mysql-denied) from 5.122.46.213
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC