cvs: php4 /ext/standard filestat.c
| From: | Stanislav Malyshev | Date: | Sun, 03 Dec 2000 13:42:55 +0000 |
| Subject: | cvs: php4 /ext/standard filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2877@lists.php.net to get a copy of this message | ||
stas Sun Dec 3 05:42:55 2000 EDT
Modified files:
/php4/ext/standard filestat.c
Log:
Fix #8079 - filetype now knows about sockets
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.49 php4/ext/standard/filestat.c:1.50
--- php4/ext/standard/filestat.c:1.49 Thu Nov 2 15:08:05 2000
+++ php4/ext/standard/filestat.c Sun Dec 3 05:42:54 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.49 2000/11/02 23:08:05 andi Exp $ */
+/* $Id: filestat.c,v 1.50 2000/12/03 13:42:54 stas Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -551,6 +551,9 @@
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);