From: Felipe Pena Date: Tue, 7 Jun 2011 01:58:56 +0000 (+0000) Subject: - Fix memory leak caused by RSHUTDOWN not being called by MINIT dependency X-Git-Tag: php-5.5.0alpha1~1984 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33a8442c5d83b4a60da432b9a55cd4292712479c;p=php - Fix memory leak caused by RSHUTDOWN not being called by MINIT dependency --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 8211383235..df2d56f491 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -3736,7 +3736,7 @@ PHP_RINIT_FUNCTION(basic) /* {{{ */ #endif BG(user_shutdown_function_names) = NULL; - BASIC_RINIT_SUBMODULE(filestat) + PHP_RINIT(filestat)(INIT_FUNC_ARGS_PASSTHRU); #ifdef HAVE_SYSLOG_H BASIC_RINIT_SUBMODULE(syslog) #endif @@ -3784,7 +3784,7 @@ PHP_RSHUTDOWN_FUNCTION(basic) /* {{{ */ /* FG(stream_wrappers) and FG(stream_filters) are destroyed * during php_request_shutdown() */ - BASIC_RSHUTDOWN_SUBMODULE(filestat) + PHP_RSHUTDOWN(filestat)(SHUTDOWN_FUNC_ARGS_PASSTHRU); #ifdef HAVE_SYSLOG_H #ifdef PHP_WIN32 BASIC_RSHUTDOWN_SUBMODULE(syslog)(SHUTDOWN_FUNC_ARGS_PASSTHRU);