diff options
Diffstat (limited to 'ext/standard/filestat.c')
-rw-r--r-- | ext/standard/filestat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index e845f4872e..6935834d85 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -551,6 +551,9 @@ static void php_stat(const char *filename, int type, pval *return_value) case S_IFDIR: RETURN_STRING("dir",1); case S_IFBLK: RETURN_STRING("block",1); case S_IFREG: RETURN_STRING("file",1); +#ifndef ZEND_WIN32 + case S_IFSOCK: RETURN_STRING("socket",1); +#endif } php_error(E_WARNING,"Unknown file type (%d)",BG(sb).st_mode&S_IFMT); RETURN_STRING("unknown",1); |