]> granicus.if.org Git - php/commitdiff
Fix for filesize() and others on sockets.
authorAndrei Zmievski <andrei@php.net>
Mon, 14 Feb 2000 14:18:17 +0000 (14:18 +0000)
committerAndrei Zmievski <andrei@php.net>
Mon, 14 Feb 2000 14:18:17 +0000 (14:18 +0000)
NEWS
ext/standard/filestat.c

diff --git a/NEWS b/NEWS
index f39537979c41ee77d11ddd91e903fa77cc14de47..509b45d1162e630638887f20204dba992b30f42a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,7 +5,7 @@ PHP 4.0                                                                    NEWS
 - 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 dbbf47299323329e254127e65bd798147305b50c..d32152b509b37aaf541e6758b523740303825750 100644 (file)
@@ -542,7 +542,8 @@ void name(INTERNAL_FUNCTION_PARAMETERS) { \
                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)