A newbie question: How can I use zend_parse_parameters to accept object of an external class as parametr.
I want for example to build a method that accepts 'DateTime' objects. I know that the syntax of zend_parse_parameters is something like: zval *obj; zend_class_entry ce; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &obj, ce, &d) == FAILURE) { return; } But how do I initiate the zend_class_entry to specify an object of the DateTime class? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php