Skip to content

Commit 8202b97

Browse files
committed
Use full path
1 parent a91f3d4 commit 8202b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type T
15961596
if (EXPECTED(persistent_script != NULL) &&
15971597
UNEXPECTED(ZCG(accel_directives).validate_permission) &&
15981598
file_handle->type == ZEND_HANDLE_FILENAME &&
1599-
UNEXPECTED(access(file_handle->filename, R_OK) != 0)) {
1599+
UNEXPECTED(access(persistent_script->full_path, R_OK) != 0)) {
16001600
if (type == ZEND_REQUIRE) {
16011601
#if ZEND_EXTENSION_API_NO < PHP_5_3_X_API_NO
16021602
zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, file_handle->filename);

0 commit comments

Comments
 (0)