Bug #17677: openlog warning and text edrror
| From: | f dot labanvoye at cg70 dot fr | Date: | Mon, 10 Jun 2002 08:39:01 +0000 |
| Subject: | Bug #17677: openlog warning and text edrror | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-9994@lists.php.net to get a copy of this message | ||
From: f.labanvoye@cg70.fr
Operating system: Windows 2000 server
PHP version: 4.2.1
PHP Bug Type: *General Issues
Bug description: openlog warning and text edrror
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 bug report at http://bugs.php.net/?id=17677&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17677&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17677&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17677&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17677&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17677&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17677&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17677&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17677&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17677&r=globals