]> granicus.if.org Git - php/commitdiff
Cleanup previous patch.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 10 Sep 2003 01:07:01 +0000 (01:07 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 10 Sep 2003 01:07:01 +0000 (01:07 +0000)
ext/standard/file.c

index ee2a847a09839eeadca31c387bb2e22eda1e7b8f..69b1c00df82e7775bbef4866bd78d4dc93095743 100644 (file)
@@ -1940,14 +1940,10 @@ PHP_FUNCTION(realpath)
        convert_to_string_ex(path);
 
        if (VCWD_REALPATH(Z_STRVAL_PP(path), resolved_path_buff)) {
-#if ZTS
-# if PHP_WIN32
-               if (_access(resolved_path_buff, 0))
-                       RETURN_FALSE;
-# else
-               if (access(resolved_path_buff, F_OK))
+#ifdef ZTS
+               if (VCWD_ACCESS(resolved_path_buff, F_OK)) {
                        RETURN_FALSE;
-# endif
+               }
 #endif
                RETURN_STRING(resolved_path_buff, 1);
        } else {