Changeset 189 in svn for trunk/processor/processor.m4


Ignore:
Timestamp:
2006-09-20T00:24:42Z (9 years ago)
Author:
Xuefer
Message:

call op_array_ctor handler on restore to be more compatible with other zend_extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/processor.m4

    r122 r189  
    474474        STRUCT_P(HashTable, static_variables, HashTable_zval_ptr)
    475475        define(`SKIPASSERT_ONCE')
    476 
    477     IFRESTORE(`
    478 #ifdef ZEND_ENGINE_2
    479         if (dst->scope) {
    480             dst->scope = xc_get_class(processor, (zend_ulong) dst->scope);
    481             xc_fix_method(processor, dst);
    482         }
    483 #endif
    484     ')
    485 
    486476    }
    487477    else
     
    496486    PROC_ZSTRING(, function_name)
    497487#ifdef ZEND_ENGINE_2
    498     IFRESTORE(`
    499         if (dst->scope) {
    500             dst->scope = xc_get_class(processor, (zend_ulong) dst->scope);
    501             xc_fix_method(processor, dst);
    502         }
    503         DONE(scope)
    504     ', `
    505         PROC_CLASS_ENTRY_P(scope)
    506     ')
    507488    DISPATCH(zend_uint, fn_flags)
    508489    dnl mark it as -1 on store, and lookup parent on restore
     
    637618#endif
    638619    } while (0);
     620
     621    IFRESTORE(`
     622#ifdef ZEND_ENGINE_2
     623        if (dst->scope) {
     624            dst->scope = xc_get_class(processor, (zend_ulong) dst->scope);
     625            xc_fix_method(processor, dst);
     626        }
     627        DONE(scope)
     628#endif
     629    ', `
     630#ifdef ZEND_ENGINE_2
     631        PROC_CLASS_ENTRY_P(scope)
     632#endif
     633    ')
     634
     635    IFRESTORE(`
     636        if (xc_have_op_array_ctor) {
     637            zend_llist_apply_with_argument(&zend_extensions, (llist_apply_with_arg_func_t) xc_zend_extension_op_array_ctor_handler, dst TSRMLS_CC);
     638        }
     639    ')
    639640')
    640641dnl }}}
Note: See TracChangeset for help on using the changeset viewer.