Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager.c
r543 r548 246 246 if (XG(coverager)) { 247 247 xc_coverager_enable(TSRMLS_C); 248 #ifdef ZEND_COMPILE_EXTENDED_INFO 249 CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; 250 #else 248 251 CG(extended_info) = 1; 252 #endif 249 253 } 250 254 else { -
trunk/processor/processor.m4
r534 r548 506 506 dnl main op_array && have early binding 507 507 zend_uint ii; 508 if (!processor->readonly_protection && !(src == processor->php_src->op_array && processor->php_src->have_early_binding)) { 508 #ifdef ZEND_COMPILE_DELAYED_BINDING 509 zend_bool need_early_binding = 0; 510 #else 511 zend_bool need_early_binding = processor->php_src->have_early_binding; 512 #endif 513 if (!processor->readonly_protection && !(src == processor->php_src->op_array && need_early_binding)) { 509 514 /* really fast shallow copy */ 510 515 memcpy(dst, src, sizeof(src[0])); … … 633 638 PROC_ZSTRING_L(, doc_comment, doc_comment_len) 634 639 #endif 640 #ifdef ZEND_COMPILE_DELAYED_BINDING 641 DISPATCH(zend_uint, early_binding); 642 #endif 635 643 636 644 /* reserved */ … … 730 738 STRUCT(zend_class_entry, cest) 731 739 #endif 740 #ifndef ZEND_COMPILE_DELAYED_BINDING 732 741 DISPATCH(int, oplineno) 742 #endif 733 743 ') 734 744 dnl }}} … … 807 817 ') 808 818 #endif 819 #ifndef ZEND_COMPILE_DELAYED_BINDING 809 820 DISPATCH(zend_bool, have_early_binding) 821 #endif 810 822 DISPATCH(zend_bool, have_references) 811 823 ') -
trunk/utils.c
r545 r548 500 500 ZESW(&stored_ce_ptr, NULL) 501 501 ); 502 #ifndef ZEND_COMPILE_DELAYED_BINDING 502 503 if (oplineno != -1) { 503 504 xc_do_early_binding(CG(active_op_array), CG(class_table), oplineno TSRMLS_CC); 504 505 } 506 #endif 505 507 } 506 508 else if (zend_u_hash_quick_add(CG(class_table), type, key, len, h, … … 673 675 #endif 674 676 677 #ifdef ZEND_COMPILE_IGNORE_INTERNAL_CLASSES 678 sandbox->orig_compiler_options = CG(compiler_options); 679 /* Using ZEND_COMPILE_IGNORE_INTERNAL_CLASSES for ZEND_FETCH_CLASS_RT_NS_CHECK 680 */ 681 CG(compiler_options) |= ZEND_COMPILE_IGNORE_INTERNAL_CLASSES | ZEND_COMPILE_DELAYED_BINDING; 682 #endif 683 675 684 XG(sandbox) = (void *) sandbox; 676 685 return sandbox; … … 728 737 729 738 if (install != XC_InstallNoBinding) { 739 #ifdef ZEND_COMPILE_DELAYED_BINDING 740 zend_do_delayed_early_binding(CG(active_op_array) TSRMLS_CC); 741 #else 730 742 xc_undo_pass_two(CG(active_op_array) TSRMLS_CC); 731 743 xc_foreach_early_binding_class(CG(active_op_array), xc_early_binding_cb, (void *) sandbox TSRMLS_CC); 732 744 xc_redo_pass_two(CG(active_op_array) TSRMLS_CC); 745 #endif 733 746 } 734 747 … … 805 818 } 806 819 #endif 820 821 #ifdef ZEND_COMPILE_IGNORE_INTERNAL_CLASSES 822 CG(compiler_options) = sandbox->orig_compiler_options; 823 #endif 824 807 825 if (sandbox->alloc) { 808 826 efree(sandbox); -
trunk/utils.h
r543 r548 105 105 xc_compilererror_t *compilererrors; 106 106 #endif 107 108 #ifdef ZEND_COMPILE_IGNORE_INTERNAL_CLASSES 109 zend_uint orig_compiler_options; 110 #endif 107 111 } xc_sandbox_t; 108 112 -
trunk/xcache.c
r547 r548 720 720 new_cest_ptrs[i] = 721 721 #endif 722 #ifdef ZEND_COMPILE_DELAYED_BINDING 723 xc_install_class(xce->name.str.val, &ci->cest, -1, 724 UNISW(0, ci->type), ci->key, ci->key_size, ci->h TSRMLS_CC); 725 #else 722 726 xc_install_class(xce->name.str.val, &ci->cest, ci->oplineno, 723 727 UNISW(0, ci->type), ci->key, ci->key_size, ci->h TSRMLS_CC); 728 #endif 724 729 } 725 730 … … 1043 1048 } 1044 1049 /* }}} */ 1050 #ifndef ZEND_COMPILE_DELAYED_BINDING 1045 1051 static void xc_cache_early_binding_class_cb(zend_op *opline, int oplineno, void *data TSRMLS_DC) /* {{{ */ 1046 1052 { … … 1070 1076 } 1071 1077 /* }}} */ 1078 #endif 1072 1079 static void xc_free_php(xc_entry_data_php_t *php TSRMLS_DC) /* {{{ */ 1073 1080 { … … 1238 1245 php->compilererror_cnt = ((xc_sandbox_t *) XG(sandbox))->compilererror_cnt; 1239 1246 #endif 1247 #ifndef ZEND_COMPILE_DELAYED_BINDING 1240 1248 /* {{{ find inherited classes that should be early-binding */ 1241 1249 php->have_early_binding = 0; … … 1248 1256 xc_redo_pass_two(php->op_array TSRMLS_CC); 1249 1257 /* }}} */ 1258 #endif 1250 1259 1251 1260 return op_array; -
trunk/xcache.h
r547 r548 243 243 ulong h; 244 244 xc_cest_t cest; 245 #ifndef ZEND_COMPILE_DELAYED_BINDING 245 246 int oplineno; 247 #endif 246 248 } xc_classinfo_t; 247 249 /* }}} */ … … 316 318 zend_uint classinfo_cnt; 317 319 xc_classinfo_t *classinfos; 320 #ifndef ZEND_COMPILE_DELAYED_BINDING 318 321 zend_bool have_early_binding; 322 #endif 319 323 320 324 #ifdef ZEND_ENGINE_2_1

