cvs: /php4 NEWS /php4/ext/standard filestat.c
| From: | Andrei Zmievski | Date: | Mon, 14 Feb 2000 14:18:17 +0000 |
| Subject: | cvs: /php4 NEWS /php4/ext/standard filestat.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10247@lists.php.net to get a copy of this message | ||
andrei Mon Feb 14 06:18:17 2000 EDT
Modified files:
/php4 NEWS
/php4/ext/standard filestat.c
Log:
Fix for filesize() and others on sockets.
Index: php4/NEWS
diff -u php4/NEWS:1.125 php4/NEWS:1.126
--- php4/NEWS:1.125 Mon Feb 14 06:06:42 2000
+++ php4/NEWS Mon Feb 14 06:18:17 2000
@@ -5,7 +5,7 @@
- Fix overrun in strip_tags (Stas, Zend library)
- Fixed crash in strip_tags() and related functions. (Thies)
- Workaround for bogus POST-Data from IE/Mac. (Thies)
-- Patch by Alain Malek <alain@virtua.ch>
+ Patch by Alain Malek <alain@virtua.ch>
- Finished the server abstraction layer; All of the PHP code is now shared
across different servers (Apache, CGI, IIS, etc.), except for thin
interface modules (Zeev)
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.23 php4/ext/standard/filestat.c:1.24
--- php4/ext/standard/filestat.c:1.23 Fri Feb 11 07:59:29 2000
+++ php4/ext/standard/filestat.c Mon Feb 14 06:18:17 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.23 2000/02/11 15:59:29 zeev Exp $ */
+/* $Id: filestat.c,v 1.24 2000/02/14 14:18:17 andrei Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -542,7 +542,8 @@
WRONG_PARAM_COUNT; \
} \
convert_to_string_ex(filename); \
- php_stat((*filename)->value.str.val, funcnum, return_value); \
+ if ((*filename)->value.str.len) \
+ php_stat((*filename)->value.str.val, funcnum, return_value); \
}
FileFunction(PHP_FN(fileperms),0)