Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24691 invoked from network); 6 May 2014 08:53:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 May 2014 08:53:18 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:46358] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/83-04569-EF2A8635 for ; Tue, 06 May 2014 04:53:18 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id D319EDE8B3; Tue, 6 May 2014 09:53:15 +0100 (BST) Date: Tue, 6 May 2014 09:53:15 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Aaron Lewis cc: internals@lists.php.net In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Convert a Bucket to zval? From: derick@php.net (Derick Rethans) 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