Changeset 548 in svn for trunk/xcache.c


Ignore:
Timestamp:
2008-03-21T15:36:17+01:00 (7 years ago)
Author:
Xuefer
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/xcache.c

    r547 r548  
    720720        new_cest_ptrs[i] =
    721721#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
    722726        xc_install_class(xce->name.str.val, &ci->cest, ci->oplineno,
    723727                UNISW(0, ci->type), ci->key, ci->key_size, ci->h TSRMLS_CC);
     728#endif
    724729    }
    725730
     
    10431048}
    10441049/* }}} */
     1050#ifndef ZEND_COMPILE_DELAYED_BINDING
    10451051static void xc_cache_early_binding_class_cb(zend_op *opline, int oplineno, void *data TSRMLS_DC) /* {{{ */
    10461052{
     
    10701076}
    10711077/* }}} */
     1078#endif
    10721079static void xc_free_php(xc_entry_data_php_t *php TSRMLS_DC) /* {{{ */
    10731080{
     
    12381245    php->compilererror_cnt = ((xc_sandbox_t *) XG(sandbox))->compilererror_cnt;
    12391246#endif
     1247#ifndef ZEND_COMPILE_DELAYED_BINDING
    12401248    /* {{{ find inherited classes that should be early-binding */
    12411249    php->have_early_binding = 0;
     
    12481256    xc_redo_pass_two(php->op_array TSRMLS_CC);
    12491257    /* }}} */
     1258#endif
    12501259
    12511260    return op_array;
Note: See TracChangeset for help on using the changeset viewer.