Re: Convert a Bucket to zval?
| From: | Derick Rethans | Date: | Tue, 06 May 2014 08:53:15 +0000 |
| Subject: | Re: Convert a Bucket to zval? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73956@lists.php.net to get a copy of this message | ||
On Mon, 5 May 2014, Aaron Lewis wrote:
> Hi,
>
> When I found a key in HashTable, I got a HashPosition
>
> Now, is there any macros that converts it to a zval* ?
It depends a bit on how you found that HashPosition. Usually, hash_find
already returns you the zval* and in most other cases you would rely on
the interal pointer and use zend_hash_get_current_data on the HashTable
with that internal pointer as first argument.
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine