cvs: Zend(PHP_4_3) / zend_execute.c

From: Date: Fri, 30 Jan 2004 02:22:32 +0000
Subject: cvs: Zend(PHP_4_3) / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2296@lists.php.net to get a copy of this message
iliaa Thu Jan 29 21:22:32 2004 EDT Modified files: (Branch: PHP_4_3) /Zend zend_execute.c Log: MFH: Apply the same parse error handling to (include|require)_once as the one for their non-once counterparts. http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.316.2.27&r2=1.316.2.28&ty=u Index: Zend/zend_execute.c diff -u Zend/zend_execute.c:1.316.2.27 Zend/zend_execute.c:1.316.2.28 --- Zend/zend_execute.c:1.316.2.27 Sun Jan 25 18:54:28 2004 +++ Zend/zend_execute.c Thu Jan 29 21:22:31 2004 @@ -2131,6 +2131,9 @@ if (zend_hash_add(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1, (void *)&dummy, sizeof(int), NULL)==SUCCESS) { new_op_array = zend_compile_file(&file_handle, (EX(opline)->op2.u.constant.value.lval==ZEND_INCLUDE_ONCE?ZEND_INCLUDE:ZEND_REQUIRE) TSRMLS_CC); zend_destroy_file_handle(&file_handle TSRMLS_CC); + if (!new_op_array) { + zend_error(E_ERROR, "Parse error inside included file."); + } } else { zend_file_handle_dtor(&file_handle); failure_retval=1;

« previous php.zend-engine.cvs (#2296) next »