php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17677 openlog warning and text edrror
Submitted: 2002-06-10 04:39 UTC Modified: 2002-09-11 11:16 UTC
From: f dot labanvoye at cg70 dot fr Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.2.1 and up OS: Windows 2000 server
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: f dot labanvoye at cg70 dot fr
New email:
PHP Version: OS:

 

 [2002-06-10 04:39 UTC] f dot labanvoye at cg70 dot fr
On windows 2000 server, apache 1.3.24 and php 4.2.1, i get the following warning:

Warning: openlog expects parameter 3 to be long, string given in script.php on line 5

my script:
<?php 
define_syslog_variables();
openlog("testlog", LOG_PID | LOG_PERROR, LOG_LOCAL0);
syslog(LOG_ALERT, "pour voir");
?>

I suspect that define_syslog_variables does not define correctly variables (LOG_LOCAL0) . 

I notice on eventlog, that the source of alerte is c-client and not "testlog".

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-31 18:16 UTC] kalowsky@php.net
Any chance you can try a snapshot from snaps.php.net?  I'm having trouble reproducing this error locally.  
 [2002-08-05 04:03 UTC] f dot labanvoye at cg70 dot fr
I found the problem. 

there is few difference between unix and windows. But documentation  doesn't provide this info. So, in source file syslog.c, i see that LOG_LOCALX are not define under windows. 

the source c-client appear, because the openlog command failed. 

I have only description problem in eventlog:

########
Type de l'?v?nement?:	Erreur
Source de l'?v?nement?:	testlog
Cat?gorie de l'?v?nement?:	(1)
ID de l'?v?nement?:	2000
Date?:		04/08/2002
Heure?:		19:44:33
Utilisateur?:	N/A
Ordinateur?:	NOVOTEC
Description?:
Impossible de trouver la description de l'ID d'?v?nement ( 2000 ) dans la source ( testlog ). L'ordinateur local n'a peut-?tre pas les informations de Registre n?cessaires ou les fichiers DLL de messagerie pour afficher les messages provenant d'un ordinateur distant testlog[1820]; pour voir.

#########

thanks
 [2002-08-15 00:02 UTC] kalowsky@php.net
Okay I have no idea what that error says, can you please translate it?

And what exactly do you mean by:
>the source c-client appear, because the openlog command 
>failed. 


 [2002-09-11 11:16 UTC] sniper@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 [2003-11-20 17:47 UTC] alboss at club-internet dot fr
Server Version: Apache/1.3.28 (Win32)
PHP Version 4.3.4
Windows NT FOO 5.1 build 2600 (note from me : XP)
The service of log events do not find a description
(ID) and advice me to add a /AUXSOURCE option to describe it!
Is the "bug" really fixed?  -------------> :
"
[11 Sep 2002 11:16am EDT] sniper@php.net 
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php
"
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Mar 15 15:00:01 2026 UTC