com php-src: Trail long path support also for deletion: ext/opcache/zend_file_cache.c
| From: | Anatol Belski | Date: | Sat, 14 Jul 2018 09:44:38 +0000 |
| Subject: | com php-src: Trail long path support also for deletion: ext/opcache/zend_file_cache.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102547@lists.php.net to get a copy of this message | ||
Commit: f6440c3aa647e50b989f0c458dfd955aac905d6d
Author: Anatol Belski <ab@php.net> Sat, 14 Jul 2018 11:43:46 +0200
Parents: b9963969fd088dca6852483fdb1c6b7e1080764d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f6440c3aa647e50b989f0c458dfd955aac905d6d
Log:
Trail long path support also for deletion
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 8b7f64d..b793aa4 100644
--- a/ext/opcache/zend_file_cache.c
+++ b/ext/opcache/zend_file_cache.c
@@ -1526,7 +1526,11 @@ void zend_file_cache_invalidate(zend_string *full_path)
filename = zend_file_cache_get_bin_file_path(full_path);
+#ifndef ZEND_WIN32
unlink(filename);
+#else
+ php_win32_ioutil_unlink(filename);
+#endif
efree(filename);
}