From: Ilia Alshanetsky Date: Wed, 17 May 2006 13:28:20 +0000 (+0000) Subject: Fixed bug #35512 (Lack of read permission on main script results in X-Git-Tag: BEFORE_NEW_OUTPUT_API~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2639d7e6d85350daaefd2a9b84ad8f005b9aa962;p=php Fixed bug #35512 (Lack of read permission on main script results in E_WARNING rather then E_ERROR). --- diff --git a/Zend/zend.c b/Zend/zend.c index 66c0387bce..db3dcf2cea 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -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);