Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12430 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49234 invoked by uid 1010); 27 Aug 2004 16:23:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49191 invoked from network); 27 Aug 2004 16:23:13 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 27 Aug 2004 16:23:13 -0000 Received: (qmail 24073 invoked from network); 27 Aug 2004 16:23:11 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 27 Aug 2004 16:23:11 -0000 Message-ID: <5.1.0.14.2.20040827092210.03213280@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 27 Aug 2004 09:23:08 -0700 To: Michael Wallner ,internals@lists.php.net In-Reply-To: <20040827091620.44342.qmail@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] retrieveing the zval pointer of an "object" From: andi@zend.com (Andi Gutmans) References: <20040827091620.44342.qmail@pb1.pair.com> There doesn't exist such a thing as the object's zval. An object can have many zval's. The zval includes the object's id and handlers that manage the object's behavior. You can just create a new zval by using MAKE_STD_ZVAL() and setting the relevant fields. If you get stuck let me know. Andi At 11:16 AM 8/27/2004 +0200, Michael Wallner wrote: >Hi, > >I have an hopefully simple question; >imagine the following statement: > >obj = (struct obj_struct *) zend_object_store_get_object(zval TSRMLS_CC); > > >Ok, now I'm in a situation where I'd need the other way >round, i.e. a way to fetch the zval of the obj I've got >(i.e. I have "obj" and need "zval"). > >Any hints? > >Thanks, >-- >Michael - < mike(@)php.net >