]> granicus.if.org Git - php/commitdiff
this crashed if some of the shutdown handlers called some file stat function
authorStanislav Malyshev <stas@php.net>
Thu, 2 Sep 2004 09:38:56 +0000 (09:38 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 2 Sep 2004 09:38:56 +0000 (09:38 +0000)
ext/standard/filestat.c

index 2b8a7c82672aab405986d748717a2cb43d4d522d..8a6041c66033795cdecea0dc397fe7db3caab633 100644 (file)
@@ -128,6 +128,7 @@ PHP_RSHUTDOWN_FUNCTION(filestat)
 {
        if (BG(CurrentStatFile)) {
                efree (BG(CurrentStatFile));
+               BG(CurrentStatFile) = NULL;
        }
        return SUCCESS;
 }