com php-src: Use full path: ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Wed, 16 Nov 2016 20:01:40 +0000 |
| Subject: | com php-src: Use full path: ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95800@lists.php.net to get a copy of this message | ||
Commit: 8202b970777b84d57c590b78f9b6572ef0e0c205
Author: Dmitry Stogov <dmitry@zend.com> Wed, 16 Nov 2016 23:01:40 +0300
Parents: a91f3d475ee9a59c38833c683c0bd355338f1564
Branches: PHP-5.6 PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8202b970777b84d57c590b78f9b6572ef0e0c205
Log:
Use full path
Changed paths:
M ext/opcache/ZendAccelerator.c
Diff:
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index c8d2290..9d0d32e8 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -1596,7 +1596,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type
T
if (EXPECTED(persistent_script != NULL) &&
UNEXPECTED(ZCG(accel_directives).validate_permission) &&
file_handle->type == ZEND_HANDLE_FILENAME &&
- UNEXPECTED(access(file_handle->filename, R_OK) != 0)) {
+ UNEXPECTED(access(persistent_script->full_path, R_OK) != 0)) {
if (type == ZEND_REQUIRE) {
#if ZEND_EXTENSION_API_NO < PHP_5_3_X_API_NO
zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, file_handle->filename);