#17677 [Fbk->Opn]: openlog warning and text edrror

From: Date: Mon, 05 Aug 2002 08:03:29 +0000
Subject: #17677 [Fbk->Opn]: openlog warning and text edrror
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15996@lists.php.net to get a copy of this message
ID: 17677 User updated by: f.labanvoye@cg70.fr Reported By: f.labanvoye@cg70.fr -Status: Feedback +Status: Open Bug Type: *General Issues Operating System: Windows 2000 server -PHP Version: 4.2.1 +PHP Version: 4.2.1 and up New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-07-31 18:16:00] kalowsky@php.net Any chance you can try a snapshot from snaps.php.net? I'm having trouble reproducing this error locally. ------------------------------------------------------------------------ [2002-06-10 04:39:00] f.labanvoye@cg70.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". ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17677&edit=1

« previous php.bugs (#15996) next »