File tree Expand file tree Collapse file tree 4 files changed +4
-28
lines changed
Expand file tree Collapse file tree 4 files changed +4
-28
lines changed Original file line number Diff line number Diff line change 22|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33?? ??? ????, PHP 8.2.14
44
5+ - Standard:
6+ . Fix memory leak in syslog device handling. (danog)
57
6823 Nov 2023, PHP 8.2.13
79
Original file line number Diff line number Diff line change @@ -366,9 +366,6 @@ PHP_MINIT_FUNCTION(basic) /* {{{ */
366366
367367PHP_MSHUTDOWN_FUNCTION (basic ) /* {{{ */
368368{
369- #ifdef HAVE_SYSLOG_H
370- PHP_MSHUTDOWN (syslog )(SHUTDOWN_FUNC_ARGS_PASSTHRU );
371- #endif
372369#ifdef ZTS
373370 ts_free_id (basic_globals_id );
374371#ifdef PHP_WIN32
@@ -425,9 +422,6 @@ PHP_RINIT_FUNCTION(basic) /* {{{ */
425422 BG (user_shutdown_function_names ) = NULL ;
426423
427424 PHP_RINIT (filestat )(INIT_FUNC_ARGS_PASSTHRU );
428- #ifdef HAVE_SYSLOG_H
429- BASIC_RINIT_SUBMODULE (syslog )
430- #endif
431425 BASIC_RINIT_SUBMODULE (dir )
432426 BASIC_RINIT_SUBMODULE (url_scanner_ex )
433427
@@ -477,9 +471,7 @@ PHP_RSHUTDOWN_FUNCTION(basic) /* {{{ */
477471
478472 PHP_RSHUTDOWN (filestat )(SHUTDOWN_FUNC_ARGS_PASSTHRU );
479473#ifdef HAVE_SYSLOG_H
480- #ifdef PHP_WIN32
481- BASIC_RSHUTDOWN_SUBMODULE (syslog )(SHUTDOWN_FUNC_ARGS_PASSTHRU );
482- #endif
474+ BASIC_RSHUTDOWN_SUBMODULE (syslog );
483475#endif
484476 BASIC_RSHUTDOWN_SUBMODULE (assert )
485477 BASIC_RSHUTDOWN_SUBMODULE (url_scanner_ex )
Original file line number Diff line number Diff line change 2222#include "php_syslog.h"
2323
2424PHP_MINIT_FUNCTION (syslog );
25- PHP_RINIT_FUNCTION (syslog );
26- #ifdef PHP_WIN32
2725PHP_RSHUTDOWN_FUNCTION (syslog );
28- #endif
29- PHP_MSHUTDOWN_FUNCTION (syslog );
3026
3127#endif
3228
Original file line number Diff line number Diff line change @@ -41,23 +41,9 @@ PHP_MINIT_FUNCTION(syslog)
4141}
4242/* }}} */
4343
44- PHP_RINIT_FUNCTION (syslog )
45- {
46- BG (syslog_device ) = NULL ;
47- return SUCCESS ;
48- }
49-
50-
51- #ifdef PHP_WIN32
5244PHP_RSHUTDOWN_FUNCTION (syslog )
5345{
54- closelog ();
55- return SUCCESS ;
56- }
57- #endif
58-
59- PHP_MSHUTDOWN_FUNCTION (syslog )
60- {
46+ php_closelog ();
6147 if (BG (syslog_device )) {
6248 free (BG (syslog_device ));
6349 BG (syslog_device ) = NULL ;
You can’t perform that action at this time.
0 commit comments