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 >

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to