witheredOldMale Posted April 23, 2009 Share Posted April 23, 2009 Hello I have registered a property headers with the class YahooRestMessage as follows: zend_class_entry zceMessage; INIT_CLASS_ENTRY(zceMessage, “YahooRestMessage”, WsslPhpRestMessageFunctions); Zend_class_entry* wssl_php_YahooRestMessage_entry = zend_register_internal_class(&zceMessage TSRMLS_CC); zend_declare_property_null(wssl_php_YahooRestMessage_entry,"headers",7,ZEND_ACC_PUBLIC); In the userspace , on an object of type YahooRestMessage I set the headers object directly: $msg->headers = $hdrs; I’ve implemented the YahooRestMessage::getHeaders() method to read the object property headers (from my understanding) as follows: zval *zMemName = NULL; MAKE_STD_ZVAL(zMemName); ZVAL_STRING(zMemName, "headers", 0); zval **zHdrs = zend_get_std_object_handlers()->get_property_ptr_ptr(zvalObject,zMemName); But *zHdrs thus got is not an object. Please help, as I’m stuck and I couldn’t find any usage examples and even the 2nd parameter to get_property_ptr_ptr's meaning is not clear. Thanks kannan Quote Link to comment https://forums.phpfreaks.com/topic/155337-unable-to-read-zend-object-property/ Share on other sites More sharing options...
cs.punk Posted April 24, 2009 Share Posted April 24, 2009 Lol sorry dude but i think your way ahead of me... Im not familiar with Object Orientated Programming... But uhm... Is that PHP your using?... Put it in actual code blocks <?php // like this! ?> Quote Link to comment https://forums.phpfreaks.com/topic/155337-unable-to-read-zend-object-property/#findComment-818131 Share on other sites More sharing options...
Daniel0 Posted April 24, 2009 Share Posted April 24, 2009 But uhm... Is that PHP your using? It's C. Quote Link to comment https://forums.phpfreaks.com/topic/155337-unable-to-read-zend-object-property/#findComment-818565 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.