]> granicus.if.org Git - php/commitdiff
Fixed bug #26814 (On parse error include included file, terminate
authorIlia Alshanetsky <iliaa@php.net>
Sun, 25 Jan 2004 23:54:12 +0000 (23:54 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 25 Jan 2004 23:54:12 +0000 (23:54 +0000)
execution script).

Zend/zend_execute.c

index 7ee8a4c6fee228af23ce86cca1f2f53f265517e1..eea286633bdd19b1fc5e5b428cc3e2884bcf4e48 100644 (file)
@@ -3386,6 +3386,9 @@ int zend_include_or_eval_handler(ZEND_OPCODE_HANDLER_ARGS)
                case ZEND_INCLUDE:
                case ZEND_REQUIRE:
                        new_op_array = compile_filename(EX(opline)->op2.u.constant.value.lval, inc_filename TSRMLS_CC);
+                       if (!new_op_array) {
+                               zend_error(E_ERROR, "Parse error inside included file.");
+                       }
                        break;
                case ZEND_EVAL: {
                                char *eval_desc = zend_make_compiled_string_description("eval()'d code" TSRMLS_CC);