1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00

Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Use full path
This commit is contained in:
Dmitry Stogov
2016-11-16 23:09:13 +03:00

View File

@@ -1775,7 +1775,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
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(ZSTR_VAL(persistent_script->script.filename), R_OK) != 0)) {
if (type == ZEND_REQUIRE) {
zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, file_handle->filename TSRMLS_CC);
zend_bailout();