Browse Source

1.2->1.1: merged [231]: fix zval reference handling

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.1@253 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 15 years ago
parent
commit
85970949b0
  1. 4
      processor/processor.m4

4
processor/processor.m4

@ -155,7 +155,7 @@ DEF_STRUCT_P_FUNC(`zval_ptr', , `dnl {{{
IFCALCCOPY(`
if (processor->reference) {
zval_ptr *ppzv;
if (zend_hash_find(&processor->zvalptrs, (char *)src[0], sizeof(src[0]), (void**)&ppzv) == SUCCESS) {
if (zend_hash_find(&processor->zvalptrs, (char *) &src[0], sizeof(src[0]), (void **) &ppzv) == SUCCESS) {
IFCOPY(`
dst[0] = *ppzv;
/* *dst is updated */
@ -178,7 +178,7 @@ DEF_STRUCT_P_FUNC(`zval_ptr', , `dnl {{{
zval_ptr pzv = dst[0];
FIXPOINTER_EX(zval, pzv)
')
if (zend_hash_add(&processor->zvalptrs, (char *)src[0], sizeof(src[0]), (void*)&pzv, sizeof(pzv), NULL) == SUCCESS) {
if (zend_hash_add(&processor->zvalptrs, (char *) &src[0], sizeof(src[0]), (void *) &pzv, sizeof(pzv), NULL) == SUCCESS) {
/* first add, go on */
dnl fprintf(stderr, "mark[%p] = %p\n", src[0], pzv);
}

Loading…
Cancel
Save