summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_file_cache.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-06-20 18:02:01 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-06-20 18:02:01 +0200
commit360b58e43b9a29afdbe342f756a9332b854077cc (patch)
tree8c051a345072927f34d74065a888e471aadfd668 /ext/opcache/zend_file_cache.c
parent0d31a8e4e1f513e17ed4cd143a482ff3b1b7b4db (diff)
parent2b4fc9eb9c0e0b607dfb0bf779936507be1ad58b (diff)
downloadphp-git-360b58e43b9a29afdbe342f756a9332b854077cc.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #78189: file cache strips last character of uname hash
Diffstat (limited to 'ext/opcache/zend_file_cache.c')
-rw-r--r--ext/opcache/zend_file_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c
index c98b937418..0e4d7748c9 100644
--- a/ext/opcache/zend_file_cache.c
+++ b/ext/opcache/zend_file_cache.c
@@ -856,7 +856,7 @@ static char *zend_file_cache_get_bin_file_path(zend_string *script_path)
memcpy(filename, ZCG(accel_directives).file_cache, len);
filename[len] = '\\';
memcpy(filename + 1 + len, md5uname, 32);
- len += 32;
+ len += 1 + 32;
filename[len] = '\\';
memcpy(filename + len + 1, accel_system_id, 32);