hholzgra                Thu Jul  3 10:54:03 2003 EDT

  Modified files:              
    /php-src/ext/standard       dir.c 
  Log:
  VCWD awareness and (hopefully) windows compile fix
  
  
Index: php-src/ext/standard/dir.c
diff -u php-src/ext/standard/dir.c:1.122 php-src/ext/standard/dir.c:1.123
--- php-src/ext/standard/dir.c:1.122    Thu Jul  3 10:34:02 2003
+++ php-src/ext/standard/dir.c  Thu Jul  3 10:54:03 2003
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dir.c,v 1.122 2003/07/03 14:34:02 hholzgra Exp $ */
+/* $Id: dir.c,v 1.123 2003/07/03 14:54:03 hholzgra Exp $ */
 
 /* {{{ includes/startup/misc */
 
@@ -433,11 +433,11 @@
                if (flags & GLOB_ONLYDIR) {
                        struct stat s;
 
-                       if (0 != stat(globbuf.gl_pathv[n], &s)) {
+                       if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) {
                                continue;
                        }
 
-                       if (!S_ISDIR(s.st_mode)) {
+                       if (S_IFDIR != s.st_mode & S_IFMT) {
                                continue;
                        }
                }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to