Changeset 618
- Timestamp:
- 2009-07-05T08:34:06+02:00 (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
ChangeLog (modified) (1 diff)
-
const_string.c (modified) (2 diffs)
-
processor/processor.m4 (modified) (4 diffs)
-
xcache.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
- Property svn:mergeinfo changed
/trunk merged: 487,491-492,495
- Property svn:mergeinfo changed
-
branches/1.3/ChangeLog
r614 r618 7 7 1.2.2 2007-12-29 8 8 == ChangeLog == 9 * added module dependency 9 10 * added module dependency 10 11 * live with wrong system time: allow caching files with mtime in further -
branches/1.3/const_string.c
r617 r618 48 48 /* 8 */ "IS_CONSTANT", 49 49 /* 9 */ "IS_CONSTANT_ARRAY", 50 /* 10 */ "IS_UNICODE", 51 #if 0 52 /* 11 */ "", 53 /* 12 */ "", 54 /* 13 */ "", 55 /* 14 */ "", 56 /* 15 */ "", "", "", "", "", 57 58 /* IS_CONSTANT_INDEX */ 59 /* 20 */ "CIDX IS_NULL", 60 /* 21 */ "CIDX IS_LONG", 61 /* 22 */ "CIDX IS_DOUBLE", 62 /* 23 */ "CIDX IS_BOOL", 63 /* 24 */ "CIDX IS_ARRAY", 64 /* 25 */ "CIDX IS_OBJECT", 65 /* 26 */ "CIDX IS_STRING", 66 /* 27 */ "CIDX IS_RESOURCE", 67 /* 28 */ "CIDX IS_CONSTANT", 68 /* 29 */ "CIDX IS_CONSTANT_ARRAY" 69 /* 20 */ "CIDX IS_UNICODE", 70 #endif 50 /* 10 */ "IS_UNICODE" 71 51 }; 72 52 … … 78 58 const char *xc_get_data_type(zend_uchar data_type) 79 59 { 80 #if 0 81 if (data_type & IS_CONSTANT_INDEX) { 82 data_type = (data_type & ~IS_CONSTANT_INDEX) + 20; 83 } 84 #endif 85 data_type &= ~IS_CONSTANT_INDEX; 86 return data_type_names[data_type]; 60 return data_type_names[(data_type & IS_CONSTANT_TYPE_MASK)]; 87 61 } 88 62 /* }}} */ -
branches/1.3/processor/processor.m4
r617 r618 79 79 *dst = *src; 80 80 zval_copy_ctor(dst); 81 Z VAL_REFCOUNT(dst) = 1;81 Z_SET_REFCOUNT(*dst, 1); 82 82 DONE(value) 83 83 DONE(type) … … 96 96 dnl {{{ zvalue_value 97 97 DISABLECHECK(` 98 switch ( src->type & ~IS_CONSTANT_INDEX) {98 switch ((Z_TYPE_P(src) & IS_CONSTANT_TYPE_MASK)) { 99 99 case IS_LONG: 100 100 case IS_RESOURCE: … … 756 756 #ifdef HAVE_XCACHE_CONSTANT 757 757 DISPATCH(zend_uint, constinfo_cnt) 758 STRUCT_ARRAY(constinfo_cnt, xc_constinfo_t, constinfos) 758 IFRESTORE(` 759 COPY(constinfos) 760 ', ` 761 STRUCT_ARRAY(constinfo_cnt, xc_constinfo_t, constinfos) 762 ') 759 763 #endif 760 764 … … 769 773 ') 770 774 STRUCT_ARRAY(classinfo_cnt, xc_classinfo_t, classinfos) 775 popdef(`BEFORE_LOOP') 771 776 #ifdef ZEND_ENGINE_2_1 772 777 DISPATCH(zend_uint, autoglobal_cnt) 773 STRUCT_ARRAY(autoglobal_cnt, xc_autoglobal_t, autoglobals) 778 IFRESTORE(` 779 COPY(autoglobals) 780 ', ` 781 STRUCT_ARRAY(autoglobal_cnt, xc_autoglobal_t, autoglobals) 782 ') 774 783 #endif 775 784 DISPATCH(zend_bool, have_early_binding) 776 popdef(`BEFORE_LOOP')777 785 ') 778 786 dnl }}} -
branches/1.3/xcache.h
r617 r618 55 55 #ifndef Z_SET_REFCOUNT 56 56 # define Z_SET_REFCOUNT(z, rc) (z).refcount = rc; 57 #endif 58 #ifndef IS_CONSTANT_TYPE_MASK 59 # define IS_CONSTANT_TYPE_MASK 0xf 57 60 #endif 58 61
Note: See TracChangeset
for help on using the changeset viewer.

