Re: retrieveing the zval pointer of an "object"

From: Date: Fri, 27 Aug 2004 16:23:08 +0000
Subject: Re: retrieveing the zval pointer of an "object"
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-12430@lists.php.net to get a copy of this message
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 >


« previous php.internals (#12430) next »