Skip to content

Commit 8e350a6

Browse files
committed
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6: Use full path
2 parents 99e5d6c + 8202b97 commit 8e350a6

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
@@ -1767,7 +1767,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
17671767
if (EXPECTED(persistent_script != NULL) &&
17681768
UNEXPECTED(ZCG(accel_directives).validate_permission) &&
17691769
file_handle->type == ZEND_HANDLE_FILENAME &&
1770-
UNEXPECTED(access(file_handle->filename, R_OK) != 0)) {
1770+
UNEXPECTED(access(ZSTR_VAL(persistent_script->full_path), R_OK) != 0)) {
17711771
if (type == ZEND_REQUIRE) {
17721772
zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, file_handle->filename TSRMLS_CC);
17731773
zend_bailout();

0 commit comments

Comments
 (0)