From d84d2789000520f5e600a6d636b23dfd17875bcd Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 2 Sep 2004 09:38:56 +0000 Subject: [PATCH] this crashed if some of the shutdown handlers called some file stat function --- ext/standard/filestat.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.1