Browse Source

fix zval reference handling

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@231 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
a75411f56e
  1. 4
      processor/processor.m4

4
processor/processor.m4

@ -161,7 +161,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 */
@ -183,7 +183,7 @@ DEF_STRUCT_P_FUNC(`zval_ptr', , `dnl {{{
', `
zval_ptr pzv = dst[0];
')
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