Browse Source

fix: zval_data type size mismatch

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@484 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 14 years ago
parent
commit
adf9a227cf
  1. 1
      processor/dispatch.m4
  2. 4
      processor/processor.m4

1
processor/dispatch.m4

@ -1,6 +1,7 @@
dnl DISPATCH(1:type, 2:elm)
define(`DISPATCH', `
DBG(`$0($*)')
assert(sizeof($1) == sizeof(src->$2));
ifelse(
`$1', `zend_bool', `PROC_INT(`$2', `u', `$1')'
, `$1', `zend_uchar', `PROC_INT(`$2', `u', `$1')'

4
processor/processor.m4

@ -149,7 +149,11 @@ dnl }}}
DONE(value)
DISPATCH(zval_data_type, type)
DISPATCH(zend_uchar, is_ref)
#ifdef ZEND_ENGINE_2
DISPATCH(zend_uint, refcount)
#else
DISPATCH(zend_ushort, refcount)
#endif
#ifdef ZEND_ENGINE_2_3
DISPATCH(zend_uchar, idx_type)
#endif

Loading…
Cancel
Save