Req #51118 [Com]: Allow multiple simultaneous syslog connections
Edit report at https://bugs.php.net/bug.php?id=51118&edit=1 ID: 51118 Comment by: f...@php.net Reported by:sylvain at abstraction dot fr Summary:Allow multiple simultaneous syslog connections Status: Analyzed Type: Feature/Change Request Package:*General Issues Operating System: all PHP Version:trunk Assigned To:fat Block user comment: N Private report: N New Comment: and it's been submitted to internals: http://news.php.net/php.internals/53744 Previous Comments: [2011-07-05 09:32:52] f...@php.net a RFC has been written and will be submitted to internals very soon: https://wiki.php.net/rfc/allow_multiple_simultaneous_syslog_connections [2011-07-05 09:31:32] f...@php.net The following patch has been added/updated: Patch Name: php-syslog.v4.patch.txt Revision: 1309872692 URL: https://bugs.php.net/patch-display.php?bug=51118&patch=php-syslog.v4.patch.txt&revision=1309872692 [2011-06-03 15:41:51] sylvain at abstraction dot fr Hi, any news of that being included to the trunk ? [2011-01-30 14:44:28] f...@php.net as it changes openlog,syslog,closelog prototype, it should be apply to trunk only [2011-01-30 14:31:02] f...@php.net The following patch has been added/updated: Patch Name: php-syslog.patch Revision: 1296394262 URL: http://bugs.php.net/patch-display.php?bug=51118&patch=php-syslog.patch&revision=1296394262 The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=51118 -- Edit this bug report at https://bugs.php.net/bug.php?id=51118&edit=1
Req #51118 [Com]: Allow multiple simultaneous syslog connections
Edit report at http://bugs.php.net/bug.php?id=51118&edit=1 ID: 51118 Comment by: sylvain at abstraction dot fr Reported by:sylvain at abstraction dot fr Summary:Allow multiple simultaneous syslog connections Status: Open Type: Feature/Change Request Package:*General Issues Operating System: all PHP Version:trunk Block user comment: N Private report: N New Comment: Hi, any news of that being included to the trunk ? Previous Comments: [2011-01-30 14:44:28] f...@php.net as it changes openlog,syslog,closelog prototype, it should be apply to trunk only [2011-01-30 14:31:02] f...@php.net The following patch has been added/updated: Patch Name: php-syslog.patch Revision: 1296394262 URL: http://bugs.php.net/patch-display.php?bug=51118&patch=php-syslog.patch&revision=1296394262 [2011-01-30 14:23:31] f...@php.net The following patch has been added/updated: Patch Name: php-syslog.patch Revision: 1296393811 URL: http://bugs.php.net/patch-display.php?bug=51118&patch=php-syslog.patch&revision=1296393811 [2011-01-30 11:58:57] f...@php.net The patch php-syslog.v1.patch add multiple syslog connexion and enhancements of the syslog() PHP core functions. [2011-01-30 11:58:01] f...@php.net The following patch has been added/updated: Patch Name: php-syslog.patch Revision: 1296385081 URL: http://bugs.php.net/patch-display.php?bug=51118&patch=php-syslog.patch&revision=1296385081 The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51118 -- Edit this bug report at http://bugs.php.net/bug.php?id=51118&edit=1
Req #51118 [Com]: Allow multiple simultaneous syslog connections
Edit report at http://bugs.php.net/bug.php?id=51118&edit=1 ID: 51118 Comment by: f...@php.net Reported by:sylvain at abstraction dot fr Summary:Allow multiple simultaneous syslog connections Status: Open Type: Feature/Change Request Package:*General Issues Operating System: all PHP Version:5.2.12 Block user comment: N Private report: N New Comment: The patch php-syslog.v1.patch add multiple syslog connexion and enhancements of the syslog() PHP core functions. Previous Comments: [2011-01-30 11:58:01] f...@php.net The following patch has been added/updated: Patch Name: php-syslog.patch Revision: 1296385081 URL: http://bugs.php.net/patch-display.php?bug=51118&patch=php-syslog.patch&revision=1296385081 [2011-01-29 14:03:14] f...@php.net I've just updated the patch with a compliant trunk patch. [2011-01-29 14:02:29] f...@php.net The following patch has been added/updated: Patch Name: php_syslog_multiple_context.patch Revision: 1296306149 URL: http://bugs.php.net/patch-display.php?bug=51118&patch=php_syslog_multiple_context.patch&revision=1296306149 [2010-07-23 13:11:41] sylvain at abstraction dot fr Thank you very much for your time. Hope it will be accepted in trunk. Regards. [2010-07-23 05:30:28] f...@php.net I just attached a patch which should do the trick. I don't know if it'll be accepted by the dev team who handle this part of PHP. openlog() returns a ressource instead of a bool. closelog() and syslog() have now a last and optional parameter: a context ressource. Everything which was working before, should still work. The only change is the return value of openlog() which should be strictely compared (openlog(...) !== true). here is a sample test script: The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51118 -- Edit this bug report at http://bugs.php.net/bug.php?id=51118&edit=1
Req #51118 [Com]: Allow multiple simultaneous syslog connections
Edit report at http://bugs.php.net/bug.php?id=51118&edit=1 ID: 51118 Comment by: f...@php.net Reported by:sylvain at abstraction dot fr Summary:Allow multiple simultaneous syslog connections Status: Open Type: Feature/Change Request Package:*General Issues Operating System: all PHP Version:5.2.12 Block user comment: N Private report: N New Comment: I've just updated the patch with a compliant trunk patch. Previous Comments: [2011-01-29 14:02:29] f...@php.net The following patch has been added/updated: Patch Name: php_syslog_multiple_context.patch Revision: 1296306149 URL: http://bugs.php.net/patch-display.php?bug=51118&patch=php_syslog_multiple_context.patch&revision=1296306149 [2010-07-23 13:11:41] sylvain at abstraction dot fr Thank you very much for your time. Hope it will be accepted in trunk. Regards. [2010-07-23 05:30:28] f...@php.net I just attached a patch which should do the trick. I don't know if it'll be accepted by the dev team who handle this part of PHP. openlog() returns a ressource instead of a bool. closelog() and syslog() have now a last and optional parameter: a context ressource. Everything which was working before, should still work. The only change is the return value of openlog() which should be strictely compared (openlog(...) !== true). here is a sample test script: [2010-07-23 05:23:41] f...@php.net 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 [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
Req #51118 [Com]: Allow multiple simultaneous syslog connections
Edit report at http://bugs.php.net/bug.php?id=51118&edit=1 ID: 51118 Comment 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: I just attached a patch which should do the trick. I don't know if it'll be accepted by the dev team who handle this part of PHP. openlog() returns a ressource instead of a bool. closelog() and syslog() have now a last and optional parameter: a context ressource. Everything which was working before, should still work. The only change is the return value of openlog() which should be strictely compared (openlog(...) !== true). here is a sample test script: Previous Comments: [2010-07-23 05:23:41] f...@php.net 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 [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