felipe                                   Tue, 07 Jun 2011 01:58:56 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=311875

Log:
- Fix memory leak caused by RSHUTDOWN not being called by MINIT dependency

Changed paths:
    U   php/php-src/trunk/ext/standard/basic_functions.c

Modified: php/php-src/trunk/ext/standard/basic_functions.c
===================================================================
--- php/php-src/trunk/ext/standard/basic_functions.c    2011-06-07 01:40:54 UTC 
(rev 311874)
+++ php/php-src/trunk/ext/standard/basic_functions.c    2011-06-07 01:58:56 UTC 
(rev 311875)
@@ -3736,7 +3736,7 @@
 #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 @@
        /* 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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to