Changeset 662 in svn for trunk/xcache.h


Ignore:
Timestamp:
2009-08-03T10:15:53+02:00 (6 years ago)
Author:
Xuefer
Message:

back patch __FILE and __DIR on cache restore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.h

    r659 r662  
    6262#ifndef IS_CONSTANT_TYPE_MASK
    6363#   define IS_CONSTANT_TYPE_MASK (~IS_CONSTANT_INDEX)
     64#endif
     65
     66#ifndef ZEND_ENGINE_2_3
     67#define zend_dirname(path, len) xc_dirname(path, len)
    6468#endif
    6569
     
    238242} xc_cache_t;
    239243/* }}} */
     244/* {{{ xc_op_array_info_t */
     245typedef struct {
     246    zend_uint oplineinfo_cnt;
     247    int *oplineinfos;
     248} xc_op_array_info_t;
     249/* }}} */
    240250/* {{{ xc_classinfo_t */
    241251typedef struct {
     
    246256    zend_uint key_size;
    247257    ulong     h;
     258    zend_uint methodinfo_cnt;
     259    xc_op_array_info_t *methodinfos;
    248260    xc_cest_t cest;
    249261#ifndef ZEND_COMPILE_DELAYED_BINDING
     
    273285    zend_uint key_size;
    274286    ulong     h;
     287    xc_op_array_info_t op_array_info;
    275288    zend_function func;
    276289} xc_funcinfo_t;
     
    311324    size_t     size;
    312325
     326    int    filepath_len;
     327    char  *filepath;
     328    int    dirpath_len;
     329    char  *dirpath;
     330#ifdef IS_UNICODE
     331    UChar *ufilepath;
     332    int    ufilepath_len;
     333    UChar *udirpath;
     334    int    udirpath_len;
     335#endif
     336
     337    xc_op_array_info_t op_array_info;
    313338    zend_op_array *op_array;
    314339
     
    387412int xc_is_ro(const void *p);
    388413int xc_is_shm(const void *p);
    389 void xc_gc_add_op_array(zend_op_array *op_array TSRMLS_DC);
     414/* {{{ xc_gc_op_array_t */
     415typedef struct {
     416#ifdef ZEND_ENGINE_2
     417    zend_uint num_args;
     418    zend_arg_info *arg_info;
     419#endif
     420    zend_uint last;
     421    zend_op *opcodes;
     422} xc_gc_op_array_t;
     423/* }}} */
     424void xc_gc_add_op_array(xc_gc_op_array_t *gc_op_array TSRMLS_DC);
     425void xc_fix_op_array_info(const xc_entry_data_php_t *php, zend_op_array *op_array, int shallow_copied, const xc_op_array_info_t *op_array_info TSRMLS_DC);
    390426
    391427#endif /* __XCACHE_H */
Note: See TracChangeset for help on using the changeset viewer.