From 4d790486b8036a418544301425bc6f89db990d73 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sun, 13 Nov 2016 16:48:36 +0100 Subject: reduce realpath_cache_bucket size by 8 bytes on 64-bit This limits the path length to 64kb which is already far above the use case. In return, the whole path cache storage size is reduced by 8kb. --- Zend/zend_virtual_cwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zend/zend_virtual_cwd.c') diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c index 8192b424b4..420bc54a7b 100644 --- a/Zend/zend_virtual_cwd.c +++ b/Zend/zend_virtual_cwd.c @@ -648,7 +648,7 @@ static inline void realpath_cache_add(const char *path, int path_len, const char memcpy(bucket->realpath, realpath, realpath_len+1); } bucket->realpath_len = realpath_len; - bucket->is_dir = is_dir; + bucket->is_dir = is_dir > 0; #ifdef ZEND_WIN32 bucket->is_rvalid = 0; bucket->is_readable = 0; -- cgit v1.2.1