summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-09-10 01:07:01 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-09-10 01:07:01 +0000
commitdfe3f32ec6f055c6848d908a0f3c6a8b7377faa6 (patch)
treecfdb2b5bbace66c7b9f39beac6953a3d5d4d883c /ext/standard/file.c
parent0a3d5c9b0883515ac9869dba519c6c3a566bfaf3 (diff)
downloadphp-git-dfe3f32ec6f055c6848d908a0f3c6a8b7377faa6.tar.gz
Cleanup previous patch.
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c10
1 files changed, 3 insertions, 7 deletions
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 {