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.3.0
44
5+ - Standard:
6+ . Fix memory leak in syslog device handling. (danog)
57
6809 Nov 2023, PHP 8.3.0RC6
79
Original file line number Diff line number Diff line change @@ -358,9 +358,6 @@ PHP_MINIT_FUNCTION(basic) /* {{{ */
358358
359359PHP_MSHUTDOWN_FUNCTION (basic ) /* {{{ */
360360{
361- #ifdef HAVE_SYSLOG_H
362- PHP_MSHUTDOWN (syslog )(SHUTDOWN_FUNC_ARGS_PASSTHRU );
363- #endif
364361#ifdef ZTS
365362 ts_free_id (basic_globals_id );
366363#ifdef PHP_WIN32
@@ -417,9 +414,6 @@ PHP_RINIT_FUNCTION(basic) /* {{{ */
417414 BG (user_shutdown_function_names ) = NULL ;
418415
419416 PHP_RINIT (filestat )(INIT_FUNC_ARGS_PASSTHRU );
420- #ifdef HAVE_SYSLOG_H
421- BASIC_RINIT_SUBMODULE (syslog )
422- #endif
423417 BASIC_RINIT_SUBMODULE (dir )
424418 BASIC_RINIT_SUBMODULE (url_scanner_ex )
425419
@@ -469,9 +463,7 @@ PHP_RSHUTDOWN_FUNCTION(basic) /* {{{ */
469463
470464 PHP_RSHUTDOWN (filestat )(SHUTDOWN_FUNC_ARGS_PASSTHRU );
471465#ifdef HAVE_SYSLOG_H
472- #ifdef PHP_WIN32
473- BASIC_RSHUTDOWN_SUBMODULE (syslog )(SHUTDOWN_FUNC_ARGS_PASSTHRU );
474- #endif
466+ BASIC_RSHUTDOWN_SUBMODULE (syslog );
475467#endif
476468 BASIC_RSHUTDOWN_SUBMODULE (assert )
477469 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