From: Stanislav Malyshev Date: Thu, 2 Sep 2004 09:39:55 +0000 (+0000) Subject: MF4: fix crash if shutdown uses file stats X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbc1cb5e9215a747ff99e024f199a512140e7dec;p=php MF4: fix crash if shutdown uses file stats --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 2aa7051a2c..3e9f8b735e 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -107,9 +107,11 @@ PHP_RSHUTDOWN_FUNCTION(filestat) { if (BG(CurrentStatFile)) { efree (BG(CurrentStatFile)); + BG(CurrentStatFile) = NULL; } if (BG(CurrentLStatFile)) { efree (BG(CurrentLStatFile)); + BG(CurrentLStatFile) = NULL; } return SUCCESS; }