Re: retrieveing the zval pointer of an "object"

From: Date: Fri, 27 Aug 2004 17:25:18 +0000
Subject: Re: retrieveing the zval pointer of an "object"
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-12432@lists.php.net to get a copy of this message
Hi Andi Gutmans, you wrote: > You can just create a new zval by using > MAKE_STD_ZVAL() and setting the relevant fields. Fair enough; I was searching for kinda ZVAL_OBJ[ECT]() macro at second, without success... > If you get stuck let me know. A tiny piece of code would help a lot :) I can't imagine how to do that right now, because I don't have the zend_object_handle. If you scroll down to approx. the middle of the code here http://iworks.at/~mike/apr/apr.c there's the definition of an APR_Ring object being kind of a doule-linked list. Now if I want to introduce a walk method going along the objects to call_user_function_ex() on them I need a zval to pass as parameter. Thanks, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#12432) next »