File tree Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ PHP NEWS
16
16
. Fixed bug #78139 (timezone_open accepts invalid timezone string argument).
17
17
(Derick)
18
18
19
+ - FPM:
20
+ . Fixed bug #67764 (fpm: syslog.ident don't work). (Jakub Zelenka)
21
+
19
22
- MBString:
20
23
. Fixed bug GH-8685 (pcre not ready at mbstring startup). (Remi)
21
24
Original file line number Diff line number Diff line change @@ -120,11 +120,6 @@ PHP_MSHUTDOWN_FUNCTION(syslog)
120
120
return SUCCESS ;
121
121
}
122
122
123
- void php_openlog (const char * ident , int option , int facility )
124
- {
125
- openlog (ident , option , facility );
126
- PG (have_called_openlog ) = 1 ;
127
- }
128
123
129
124
/* {{{ Open connection to system logger */
130
125
/*
@@ -161,7 +156,7 @@ PHP_FUNCTION(closelog)
161
156
{
162
157
ZEND_PARSE_PARAMETERS_NONE ();
163
158
164
- closelog ();
159
+ php_closelog ();
165
160
if (BG (syslog_device )) {
166
161
free (BG (syslog_device ));
167
162
BG (syslog_device )= NULL ;
Original file line number Diff line number Diff line change 32
32
#define syslog std_syslog
33
33
#endif
34
34
35
+ void php_openlog (const char * ident , int option , int facility )
36
+ {
37
+ openlog (ident , option , facility );
38
+ PG (have_called_openlog ) = 1 ;
39
+ }
40
+
41
+ void php_closelog ()
42
+ {
43
+ closelog ();
44
+ PG (have_called_openlog ) = 0 ;
45
+ }
46
+
35
47
#ifdef PHP_WIN32
36
48
PHPAPI void php_syslog (int priority , const char * format , ...) /* {{{ */
37
49
{
Original file line number Diff line number Diff line change 37
37
BEGIN_EXTERN_C ()
38
38
PHPAPI void php_syslog (int , const char * format , ...);
39
39
PHPAPI void php_openlog (const char * , int , int );
40
+ PHPAPI void php_closelog ();
40
41
END_EXTERN_C ()
41
42
42
43
#endif
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ int fpm_stdio_init_child(struct fpm_worker_pool_s *wp) /* {{{ */
88
88
{
89
89
#ifdef HAVE_SYSLOG_H
90
90
if (fpm_globals .error_log_fd == ZLOG_SYSLOG ) {
91
- closelog (); /* ensure to close syslog not to interrupt with PHP syslog code */
91
+ php_closelog (); /* ensure to close syslog not to interrupt with PHP syslog code */
92
92
} else
93
93
#endif
94
94
You can’t perform that action at this time.
0 commit comments