From 33a8442c5d83b4a60da432b9a55cd4292712479c Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 7 Jun 2011 01:58:56 +0000 Subject: [PATCH] - Fix memory leak caused by RSHUTDOWN not being called by MINIT dependency --- ext/standard/basic_functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.50.1