Edit report at http://bugs.php.net/bug.php?id=51118&edit=1
ID: 51118 Patch added by: f...@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