cvs: php4 /ext/standard filestat.c
| From: | Andi Gutmans | Date: | Wed, 25 Apr 2001 05:53:45 +0000 |
| Subject: | cvs: php4 /ext/standard filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5250@lists.php.net to get a copy of this message | ||
andi Tue Apr 24 22:53:45 2001 EDT
Modified files:
/php4/ext/standard filestat.c
Log:
- Another fix
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.59 php4/ext/standard/filestat.c:1.60
--- php4/ext/standard/filestat.c:1.59 Tue Apr 24 22:43:30 2001
+++ php4/ext/standard/filestat.c Tue Apr 24 22:53:45 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.59 2001/04/25 05:43:30 andi Exp $ */
+/* $Id: filestat.c,v 1.60 2001/04/25 05:53:45 andi Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -488,8 +488,8 @@
/* do lstat if the buffer is empty */
if (!BG(lsb).st_mode) {
- if (V_LSTAT(BG(CurrentStatFile), &BG(lsb)) == -1) {
- php_error(E_NOTICE, "lstat failed for %s (errno=%d - %s)", BG(CurrentStatFile),
errno, strerror(errno));
+ if (V_LSTAT(filename, &BG(lsb)) == -1) {
+ php_error(E_NOTICE, "lstat failed for %s (errno=%d - %s)", filename, errno,
strerror(errno));
RETURN_FALSE;
}
}