com php-src: Support long path also when reading from file cache: ext/opcache/zend_file_cache.c

From: Date: Thu, 12 Jul 2018 07:26:50 +0000
Subject: com php-src: Support long path also when reading from file cache: ext/opcache/zend_file_cache.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102526@lists.php.net to get a copy of this message
Commit: 129c5c1181bf344b37e13fd6dc5dfe76c13d7208 Author: Anatol Belski <ab@php.net> Thu, 12 Jul 2018 09:26:50 +0200 Parents: 81eb8e7507bdec00a6dde4ac759d668d048b6f13 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=129c5c1181bf344b37e13fd6dc5dfe76c13d7208 Log: Support long path also when reading from file cache Changed paths: M ext/opcache/zend_file_cache.c Diff: diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c index 6190760..8455738 100644 --- a/ext/opcache/zend_file_cache.c +++ b/ext/opcache/zend_file_cache.c @@ -1346,7 +1346,11 @@ zend_persistent_script *zend_file_cache_script_load(zend_file_handle *file_handl } filename = zend_file_cache_get_bin_file_path(full_path); +#ifndef ZEND_WIN32 fd = open(filename, O_RDONLY | O_BINARY); +#else + fd = php_win32_ioutil_open(filename, O_RDONLY | O_BINARY); +#endif if (fd < 0) { efree(filename); return NULL;

« previous php.cvs (#102526) next »