iliaa           Thu Feb 27 15:38:01 2003 EDT

  Modified files:              
    /php4/ext/standard  filestat.c 
  Log:
  Fixed a bug that would cause filetype() to return "unknown" for 
  non-existent files on Win32.
  
  
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.120 php4/ext/standard/filestat.c:1.121
--- php4/ext/standard/filestat.c:1.120  Thu Feb 27 11:41:23 2003
+++ php4/ext/standard/filestat.c        Thu Feb 27 15:38:00 2003
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: filestat.c,v 1.120 2003/02/27 16:41:23 iliaa Exp $ */
+/* $Id: filestat.c,v 1.121 2003/02/27 20:38:00 iliaa Exp $ */
 
 #include "php.h"
 #include "safe_mode.h"
@@ -608,9 +608,10 @@
                        }
                        efree(BG(CurrentStatFile));
                        BG(CurrentStatFile) = NULL;
-                       if (!IS_LINK_OPERATION(type)) { /* Don't require success for 
link operation */
+#if HAVE_SYMLINK
+                       if (!IS_LINK_OPERATION(type))  /* Don't require success for 
link operation */
+#endif
                                RETURN_FALSE;
-                       }
                }
        }
 



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

Reply via email to