summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-05-17 13:27:51 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-05-17 13:27:51 +0000
commit21724432de9871aeb75a2f3b14bf1e4df6933f5f (patch)
tree374814a9928625bf341185fe839eb7b534640406 /Zend/zend.c
parente2afb33e8767002cc8b9517c05a735d664efd691 (diff)
downloadphp-git-21724432de9871aeb75a2f3b14bf1e4df6933f5f.tar.gz
Fixed bug #35512 (Lack of read permission on main script results in
E_WARNING rather then E_ERROR).
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 78d7f34416..d52b43a9fb 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -1088,7 +1088,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);