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

From: Date: Wed, 31 Jul 2002 22:16:01 +0000
Subject: #17677 [Opn->Fbk]: openlog warning and text edrror
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15723@lists.php.net to get a copy of this message
ID: 17677 Updated by: kalowsky@php.net Reported By: f.labanvoye@cg70.fr -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Windows 2000 server PHP Version: 4.2.1 New Comment: Any chance you can try a snapshot from snaps.php.net? I'm having trouble reproducing this error locally. Previous Comments: ------------------------------------------------------------------------ [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 (#15723) next »