Skip navigation.
Home

zend_register_internal_class()

Registers a class

zend_register_internal_class_ex(zend_class_entry *orig_class_entry TSRMLS_DC)


Returns:

zend_class_entry*

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);