Changeset 7c8d076 in git


Ignore:
Timestamp:
2006-10-11T05:23:39Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.0
Children:
6d00cce
Parents:
d8097b1
Message:

trunk->1.0: merged [231] fix zval reference handling

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.0@238 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • processor/processor.m4

    rd517ba5 r7c8d076  
    150150                if (processor->reference) {
    151151                    zval_ptr *ppzv;
    152                     if (zend_hash_find(&processor->zvalptrs, (char *)src[0], sizeof(src[0]), (void**)&ppzv) == SUCCESS) {
     152                    if (zend_hash_find(&processor->zvalptrs, (char *) &src[0], sizeof(src[0]), (void **) &ppzv) == SUCCESS) {
    153153                        IFCOPY(`
    154154                            dst[0] = *ppzv;
     
    172172                        zval_ptr pzv = dst[0];
    173173                    ')
    174                     if (zend_hash_add(&processor->zvalptrs, (char *)src[0], sizeof(src[0]), (void*)&pzv, sizeof(pzv), NULL) == SUCCESS) {
     174                    if (zend_hash_add(&processor->zvalptrs, (char *) &src[0], sizeof(src[0]), (void *) &pzv, sizeof(pzv), NULL) == SUCCESS) {
    175175                        /* first add, go on */
    176176                        dnl fprintf(stderr, "mark[%p] = %p\n", src[0], pzv);
Note: See TracChangeset for help on using the changeset viewer.