Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12432 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60097 invoked by uid 1010); 27 Aug 2004 17:25:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60019 invoked by uid 1007); 27 Aug 2004 17:25:06 -0000 Message-ID: <20040827172506.60018.qmail@pb1.pair.com> To: internals@lists.php.net Date: Fri, 27 Aug 2004 19:25:18 +0200 Organization: IWORKS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: de-AT, de-DE, de, en-GB, en-US, en MIME-Version: 1.0 References: <20040827091620.44342.qmail@pb1.pair.com> <5.1.0.14.2.20040827092210.03213280@127.0.0.1> In-Reply-To: <5.1.0.14.2.20040827092210.03213280@127.0.0.1> X-Enigmail-Version: 0.83.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig041BEF9DC4AFFD543CA829C8" X-Posted-By: 80.121.40.198 Subject: Re: [PHP-DEV] retrieveing the zval pointer of an "object" From: mike@php.net (Michael Wallner) --------------enig041BEF9DC4AFFD543CA829C8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > --------------enig041BEF9DC4AFFD543CA829C8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (Cygwin) iD8DBQFBL26B2pTtEijQyW0RAnCVAJ4gWijTpHexfyuZsDcT53L8wmnuTQCdH15M ji4yj2nZ5tVGayo3Eh2DHi0= =K3eB -----END PGP SIGNATURE----- --------------enig041BEF9DC4AFFD543CA829C8--