using zend_parse_parameters to get an object of an externally defined class

From: Date: Fri, 28 Sep 2007 10:57:34 +0000
Subject: using zend_parse_parameters to get an object of an externally defined class
Groups: php.internals 
Request: Send a blank email to internals+get-32488@lists.php.net to get a copy of this message
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?

« previous php.internals (#32488) next »