Browse Source

fix false assertion on php.autoglobal_cnt

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@299 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
9b1666062e
  1. 3
      xcache.c

3
xcache.c

@ -1053,9 +1053,10 @@ static zend_op_array *xc_compile_file(zend_file_handle *h, int type TSRMLS_DC) /
zend_auto_global *auto_global = (zend_auto_global *) b->pData;
/* check if actived */
if (auto_global->auto_global_callback && !auto_global->armed) {
xc_autoglobal_t *data = &php.autoglobals[i ++];
xc_autoglobal_t *data = &php.autoglobals[i];
assert(i < php.autoglobal_cnt);
i ++;
UNISW(NOTHING, data->type = b->key.type;)
if (UNISW(1, b->key.type == IS_STRING)) {
ZSTR_S(data->key) = BUCKET_KEY_S(b);

Loading…
Cancel
Save