]> granicus.if.org Git - php/commitdiff
- Fix memory leak caused by RSHUTDOWN not being called by MINIT dependency
authorFelipe Pena <felipe@php.net>
Tue, 7 Jun 2011 01:58:56 +0000 (01:58 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 7 Jun 2011 01:58:56 +0000 (01:58 +0000)
ext/standard/basic_functions.c

index 8211383235cb2e12bff467ec8cd0bd3b217f872a..df2d56f4911d50532ade422a6c494f954d3b0c40 100644 (file)
@@ -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);