From: Stanislav Malyshev Date: Thu, 2 Sep 2004 09:38:56 +0000 (+0000) Subject: this crashed if some of the shutdown handlers called some file stat function X-Git-Tag: php-4.3.9RC3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d84d2789000520f5e600a6d636b23dfd17875bcd;p=php this crashed if some of the shutdown handlers called some file stat function --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 2b8a7c8267..8a6041c660 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -128,6 +128,7 @@ PHP_RSHUTDOWN_FUNCTION(filestat) { if (BG(CurrentStatFile)) { efree (BG(CurrentStatFile)); + BG(CurrentStatFile) = NULL; } return SUCCESS; }