Fixed bug #35512 (Lack of read permission on main script results in

E_WARNING rather then E_ERROR).
This commit is contained in:
Ilia Alshanetsky 2006-05-17 13:28:20 +00:00
parent 08ff489ef8
commit 2639d7e6d8

View File

@ -1556,7 +1556,7 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
if (!file_handle) {
continue;
}
EG(active_op_array) = zend_compile_file(file_handle, ZEND_INCLUDE TSRMLS_CC);
EG(active_op_array) = zend_compile_file(file_handle, type TSRMLS_CC);
if(file_handle->opened_path) {
int dummy=1;
zend_hash_add(&EG(included_files), file_handle->opened_path, strlen(file_handle->opened_path)+1, (void *)&dummy, sizeof(int), NULL);