From: Ilia Alshanetsky Date: Wed, 10 Sep 2003 01:07:01 +0000 (+0000) Subject: Cleanup previous patch. X-Git-Tag: RELEASE_0_7~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfe3f32ec6f055c6848d908a0f3c6a8b7377faa6;p=php Cleanup previous patch. --- diff --git a/ext/standard/file.c b/ext/standard/file.c index ee2a847a09..69b1c00df8 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -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 {