sas             Thu Oct  3 21:05:03 2002 EDT

  Modified files:              
    /php4/ext/standard  filestat.c 
  Log:
  Fix php_stat brokenness.
  
  
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.111 php4/ext/standard/filestat.c:1.112
--- php4/ext/standard/filestat.c:1.111  Tue Oct  1 17:53:25 2002
+++ php4/ext/standard/filestat.c        Thu Oct  3 21:05:03 2002
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: filestat.c,v 1.111 2002/10/01 21:53:25 sesser Exp $ */
+/* $Id: filestat.c,v 1.112 2002/10/04 01:05:03 sas Exp $ */
 
 #include "php.h"
 #include "safe_mode.h"
@@ -573,28 +573,16 @@
        }
 
 #ifndef PHP_WIN32
-#ifdef VIRTUAL_DIR
-       {
-               char *tmpname;
-
-               if (virtual_filepath(filename, &tmpname TSRMLS_CC)) {
-                       php_error(E_WARNING, "Cannot get the virtual filepath of 
%s\n", filename);
-                       RETURN_FALSE;
-               }
-
-               filename = tmpname;
-       }
-#endif
 
        switch (type) {
                case FS_IS_W:
-                       RETURN_BOOL (!access (filename, W_OK));
+                       RETURN_BOOL (!VCWD_ACCESS(filename, W_OK));
                case FS_IS_R:
-                       RETURN_BOOL (!access (filename, R_OK));
+                       RETURN_BOOL (!VCWD_ACCESS(filename, R_OK));
                case FS_IS_X:
-                       RETURN_BOOL (!access (filename, X_OK));
+                       RETURN_BOOL (!VCWD_ACCESS(filename, X_OK));
                case FS_EXISTS:
-                       RETURN_BOOL (!access (filename, F_OK));
+                       RETURN_BOOL (!VCWD_ACCESS(filename, F_OK));
        }
 #endif
 



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

Reply via email to