summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-11-16 23:01:40 +0300
committerDmitry Stogov <dmitry@zend.com>2016-11-16 23:01:40 +0300
commit8202b970777b84d57c590b78f9b6572ef0e0c205 (patch)
tree2e7359eb620c9cf9694bdc5f152f3c1d6f47f55c
parenta91f3d475ee9a59c38833c683c0bd355338f1564 (diff)
downloadphp-git-8202b970777b84d57c590b78f9b6572ef0e0c205.tar.gz
Use full path
-rw-r--r--ext/opcache/ZendAccelerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index c8d2290574..9d0d32e8e4 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);