[php-src] master: perf: ZTS: remove obsolete realpath access check (#22721)
| From: | Marc via GitHub | Date: | Thu, 17 Sep 2026 15:06:06 +0000 |
| Subject: | [php-src] master: perf: ZTS: remove obsolete realpath access check (#22721) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141251@lists.php.net to get a copy of this message | ||
Author: Marc (henderkes)
Committer: GitHub (web-flow)
Pusher: arnaud-lb
Date: 2026-09-17T17:06:03+02:00
Commit: https://github.com/php/php-src/commit/d05c31443198750c57dbecd0590629d43d389ddc
Raw diff: https://github.com/php/php-src/commit/d05c31443198750c57dbecd0590629d43d389ddc.diff
perf: ZTS: remove obsolete realpath access check (#22721)
Changed paths:
M ext/standard/file.c
Diff:
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 0f94acd4c7ca..daefcd77e725 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -2212,11 +2212,6 @@ PHP_FUNCTION(realpath)
RETURN_FALSE;
}
-#ifdef ZTS
- if (VCWD_ACCESS(resolved_path_buff, F_OK)) {
- RETURN_FALSE;
- }
-#endif
RETURN_STRING(resolved_path_buff);
} else {
RETURN_FALSE;