zend_register_internal_class()
Submitted by Katrina Niolet on Sat, 06/23/2007 - 23:09.
Registers a class
zend_register_internal_class_ex(zend_class_entry *orig_class_entry TSRMLS_DC)
Returns:
Parameters:
| type | parameter | description |
|---|---|---|
| zend_class_entry* | orig_class_entry | class entry of the class you are registering |
| void*** | TSRMLS_DC | used to pass a reference to the current thread; you should generally pass the TSRMLS_C macro for this paremeter (or skip the comma in front of it and use TSRMLS_CC) |
Note: A class that contains any abstract methods will automatically become an abstract class
Example:
myChild = zend_register_internal_class(&myChild_ce TSRMLS_CC);
