]> granicus.if.org Git - php/commitdiff
-
authorAndi Gutmans <andi@php.net>
Mon, 10 Apr 2000 21:12:33 +0000 (21:12 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 10 Apr 2000 21:12:33 +0000 (21:12 +0000)
Zend/zend-scanner.l
Zend/zend_execute.c

index 86566de35bc5a11bc2b47dd2cfc5a5e9c694051a..90f8d0eff40f092a40ba71f021156fa18082eb50 100644 (file)
@@ -389,9 +389,6 @@ ZEND_API zend_op_array *v_compile_files(int mark_as_ref CLS_DC, int file_count,
                if (compiled_files>0) {
                        CG(active_op_array) = original_active_op_array;
                        pass_two(op_array);
-                       if (mark_as_ref) {
-                               pass_include_eval(op_array);
-                       }
                } else {
                        CG(active_op_array) = original_active_op_array;
                        destroy_op_array(op_array);
index 7bf0e106c87fa63a450308f7848926337b497f68..8af12376ea0606306d65992d6b107ccd913b259c 100644 (file)
@@ -2053,6 +2053,9 @@ send_by_ref:
                                                                if (file_handle.handle.fp) {
                                                                        if (!opened_path || zend_hash_add(&EG(included_files), opened_path, strlen(opened_path)+1, (void *)&dummy, sizeof(int), NULL)==SUCCESS) {
                                                                                new_op_array = compile_files(1 CLS_CC, 1, &file_handle);
+                                                                               if (new_op_array) {
+                                                                                       pass_include_eval(new_op_array);
+                                                                               }       
                                                                        }
                                                                        if (opened_path) {
                                                                                free(opened_path);
@@ -2067,6 +2070,9 @@ send_by_ref:
                                                case ZEND_INCLUDE:
                                                case ZEND_REQUIRE:
                                                        new_op_array = compile_filename(opline->op2.u.constant.value.lval, get_zval_ptr(&opline->op1, Ts, &EG(free_op1), BP_VAR_R) CLS_CC ELS_CC);
+                                                       if (new_op_array) {
+                                                               pass_include_eval(new_op_array);
+                                                       }
                                                        break;
                                                case ZEND_EVAL:
                                                        new_op_array = compile_string(get_zval_ptr(&opline->op1, Ts, &EG(free_op1), BP_VAR_R) CLS_CC);