From 8202b970777b84d57c590b78f9b6572ef0e0c205 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 16 Nov 2016 23:01:40 +0300 Subject: [PATCH] Use full path --- ext/opcache/ZendAccelerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index c8d22905746..9d0d32e8e44 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);