Edit report at https://bugs.php.net/bug.php?id=52052&edit=1
ID: 52052 Updated by: f...@php.net Reported by: ef-lists at email dot de Summary: add syslog support to FPM -Status: Analyzed +Status: Closed Type: Feature/Change Request Package: FPM related Operating System: Linux/*NIX PHP Version: 5.3SVN-2010-06-11 (SVN) Assigned To: fat Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. As nobody cares about syslog on PHP, I won't spend some more time with this. Sorry. I've done everyhting I could and it will stay this way unless someone starts to care about syslog support into core. ++ fat Previous Comments: ------------------------------------------------------------------------ [2011-10-08 13:34:40] f...@php.net Automatic comment from SVN on behalf of fat Revision: http://svn.php.net/viewvc/?view=revision&revision=317892 Log: - Backported FR #52052 from 5.4 branch (Added partial syslog support) ------------------------------------------------------------------------ [2011-07-05 15:25:32] f...@php.net I've just commit a partial syslog support to 5.4 branch and trunk: http://svn.php.net/viewvc?view=revision&sortby=date&revision=312950 I'll wait 5.3.7 is out before backporting this to 5.3 branch. it's only a partial syslog support as only error_log can use syslog. Slowlog patch must wait for bug #51118 to be closed. ------------------------------------------------------------------------ [2011-07-05 15:22:45] f...@php.net Automatic comment from SVN on behalf of fat Revision: http://svn.php.net/viewvc/?view=revision&revision=312950 Log: - FR #52052: Added partial syslog support (on error_log only) ------------------------------------------------------------------------ [2011-07-05 13:15:29] f...@php.net to allow syslog on children, we'll have to wait until https://bugs.php.net/bug.php?id=51118 is closed. ------------------------------------------------------------------------ [2011-04-12 02:17:31] mark at catseye dot org I tried this out in a development snapshot for PHP 5.3.7, but found that calls to zlog() from children were not showing up in syslog. The following change fixes the problem; let me know if you'd like me to upload a new version of the patch. diff -up php-snap/sapi/fpm/fpm/fpm_stdio.c.syslog php-snap/sapi/fpm/fpm/fpm_st dio.c --- php-snap/sapi/fpm/fpm/fpm_stdio.c.syslog 2011-04-11 19:10:17.425036568 -0 400 +++ php-snap/sapi/fpm/fpm/fpm_stdio.c 2011-04-11 19:10:24.569131370 -0400 @@ -64,9 +64,9 @@ int fpm_stdio_init_child(struct fpm_work #endif { close(fpm_globals.error_log_fd); + fpm_globals.error_log_fd = -1; + zlog_set_fd(-1); } - fpm_globals.error_log_fd = -1; - zlog_set_fd(-1); if (wp->listening_socket != STDIN_FILENO) { if (0 > dup2(wp->listening_socket, STDIN_FILENO)) { ------------------------------------------------------------------------ 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=52052 -- Edit this bug report at https://bugs.php.net/bug.php?id=52052&edit=1