stas Thu Sep 2 05:39:56 2004 EDT
Modified files:
/php-src/ext/standard filestat.c
Log:
MF4: fix crash if shutdown uses file stats
http://cvs.php.net/diff.php/php-src/ext/standard/filestat.c?r1=1.130&r2=1.131&ty=u
Index: php-src/ext/standard/filestat.c
diff -u php-src/ext/standard/filestat.c:1.130 php-src/ext/standard/filestat.c:1.131
--- php-src/ext/standard/filestat.c:1.130 Thu Jan 8 03:17:31 2004
+++ php-src/ext/standard/filestat.c Thu Sep 2 05:39:55 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.130 2004/01/08 08:17:31 andi Exp $ */
+/* $Id: filestat.c,v 1.131 2004/09/02 09:39:55 stas Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -107,9 +107,11 @@
{
if (BG(CurrentStatFile)) {
efree (BG(CurrentStatFile));
+ BG(CurrentStatFile) = NULL;
}
if (BG(CurrentLStatFile)) {
efree (BG(CurrentLStatFile));
+ BG(CurrentLStatFile) = NULL;
}
return SUCCESS;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php