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; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php