cvs: php-src(PHP_4_3) /ext/standard filestat.c
| From: | Stanislav Malyshev | Date: | Thu, 02 Sep 2004 09:38:57 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/standard filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28546@lists.php.net to get a copy of this message | ||
stas Thu Sep 2 05:38:57 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/standard filestat.c
Log:
this crashed if some of the shutdown handlers called some file stat function
http://cvs.php.net/diff.php/php-src/ext/standard/filestat.c?r1=1.112.2.10&r2=1.112.2.11&ty=u
Index: php-src/ext/standard/filestat.c
diff -u php-src/ext/standard/filestat.c:1.112.2.10 php-src/ext/standard/filestat.c:1.112.2.11
--- php-src/ext/standard/filestat.c:1.112.2.10 Fri Jul 16 01:08:15 2004
+++ php-src/ext/standard/filestat.c Thu Sep 2 05:38:56 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.112.2.10 2004/07/16 05:08:15 pollita Exp $ */
+/* $Id: filestat.c,v 1.112.2.11 2004/09/02 09:38:56 stas Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -128,6 +128,7 @@
{
if (BG(CurrentStatFile)) {
efree (BG(CurrentStatFile));
+ BG(CurrentStatFile) = NULL;
}
return SUCCESS;
}