Req #51118 [PATCH]: Allow multiple simultaneous syslog connections
| From: | fat@php.net | Date: | Fri, 23 Jul 2010 03:23:42 +0000 |
| Subject: | Req #51118 [PATCH]: Allow multiple simultaneous syslog connections | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152646@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51118&edit=1
ID: 51118
Patch added by: fat@php.net
Reported by: sylvain at abstraction dot fr
Summary: Allow multiple simultaneous syslog connections
Status: Open
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: all
PHP Version: 5.2.12
New Comment:
The following patch has been added/updated:
Patch Name: php_syslog_multiple_context.patch
Revision: 1279855421
URL:
http://bugs.php.net/patch-display.php?bug=51118&patch=php_syslog_multiple_context.patch&revision=1279855421
Previous Comments:
------------------------------------------------------------------------
[2010-02-22 18:57:36] sylvain at abstraction dot fr
Description:
------------
the openlog function does not return a resource like would do the fopen
or any database connection function.
That implementation limits to 1 the simultaneous number of connections
possible to syslog and this is problematic when we aim to use syslog
with different log locals.
Expected result:
----------------
$syslog_local0 = openlog('foo', LOG_NDELAY, LOG_LOCAL0);
syslog($syslog_local0, LOG_WARNING, "blah");
$syslog_local1 = openlog('bar', LOG_NDELAY, LOG_LOCAL1);
syslog($syslog_local1, LOG_WARNING, "blah blah");
closelog($syslog_local0);
closelog($syslog_local1);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51118&edit=1