Ignore:
Timestamp:
2008-03-21T15:36:17+01:00 (7 years ago)
Author:
moo
Message:

PHP_5_3 support: uses ZEND_COMPILE_IGNORE_INTERNAL_CLASSES and ZEND_COMPILE_DELAYED_BINDING stuffs for PHP_5_3 support finally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/processor.m4

    r534 r548  
    506506    dnl main op_array && have early binding 
    507507    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)) { 
    509514        /* really fast shallow copy */ 
    510515        memcpy(dst, src, sizeof(src[0])); 
     
    633638    PROC_ZSTRING_L(, doc_comment, doc_comment_len) 
    634639#endif 
     640#ifdef ZEND_COMPILE_DELAYED_BINDING 
     641    DISPATCH(zend_uint, early_binding); 
     642#endif 
    635643 
    636644    /* reserved */ 
     
    730738    STRUCT(zend_class_entry, cest) 
    731739#endif 
     740#ifndef ZEND_COMPILE_DELAYED_BINDING 
    732741    DISPATCH(int, oplineno) 
     742#endif 
    733743') 
    734744dnl }}} 
     
    807817    ') 
    808818#endif 
     819#ifndef ZEND_COMPILE_DELAYED_BINDING 
    809820    DISPATCH(zend_bool, have_early_binding) 
     821#endif 
    810822    DISPATCH(zend_bool, have_references) 
    811823') 
Note: See TracChangeset for help on using the changeset viewer.