summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2000-02-14 14:18:17 +0000
committerAndrei Zmievski <andrei@php.net>2000-02-14 14:18:17 +0000
commitf71098906b2be4f0063b966d63b771d678a514f9 (patch)
treed2078538f606b34d2ca42df8c55884ef106adcdc /ext
parentb881578f674b8f433fce7b2538fe727f82dd7a81 (diff)
downloadphp-git-f71098906b2be4f0063b966d63b771d678a514f9.tar.gz
Fix for filesize() and others on sockets.
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/filestat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index dbbf472993..d32152b509 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -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)