Date: 07/19/01
- Next message: Gavin Sherry: "Re: [PHP-DEV] Reworking DOMXML"
- Previous message: ake.lundsten <email protected>: "[PHP-DEV] Bug #12248: Page hangs as soon as I have added the _gd extension in php.ini"
- Next in thread: Zeev Suraski: "RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_referen ce?"
- Reply: Zeev Suraski: "RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_referen ce?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> When you build the result hash, use the same zval * in both
> places (don't forget the right refcount), it should work.
>Yes, just use the same zval *, increase refcount accordingly, and set the
> is_ref bit. It'd be much faster (and also more correct) than using the
> assign_to_variable_reference() function...
OK, could you help me out here?
Can I just do this:
zend_hash_index_find((*row_ptr)->value.ht, col_index, (void **)
&actual_ptr);
(*actual_ptr)->refcount++;
(*actual_ptr)->is_ref =1;
zend_hash_update((*row_ptr)->value.ht, (*columnname_ptr)->value.str.val,
(*columnname_ptr)->value.str.len + 1, actual_ptr, sizeof(zval *), NULL);
This seems to work. However, I tried it without the refcount and is_ref
statements, and it still seems to work... (this is in the 4.0.6 version,
btw)
There is no memory loss for both versions...
Cheerio, Marc.
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Gavin Sherry: "Re: [PHP-DEV] Reworking DOMXML"
- Previous message: ake.lundsten <email protected>: "[PHP-DEV] Bug #12248: Page hangs as soon as I have added the _gd extension in php.ini"
- Next in thread: Zeev Suraski: "RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_referen ce?"
- Reply: Zeev Suraski: "RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_referen ce?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

