Searched defs:parent_ce (Results 1 - 4 of 4) sorted by relevance

/PHP_TRUNK/ext/spl/
H A Dspl_functions.c56 PHPAPI void spl_register_sub_class(zend_class_entry ** ppce, zend_class_entry * parent_ce, char * class_name, void *obj_ctor, const zend_function_entry * function_list) argument
61 *ppce = zend_register_internal_class_ex(&ce, parent_ce);
67 (*ppce)->create_object = parent_ce->create_object;
/PHP_TRUNK/Zend/
H A Dzend_inheritance.c695 static void do_inherit_class_constant(zend_string *name, zval *zv, zend_class_entry *ce, zend_class_entry *parent_ce) /* {{{ */ argument
699 if (parent_ce->type == ZEND_INTERNAL_CLASS) {
714 ZEND_API void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce) /* {{{ */ argument
723 if (UNEXPECTED(!(parent_ce->ce_flags & ZEND_ACC_INTERFACE))) {
724 zend_error_noreturn(E_COMPILE_ERROR, "Interface %s may not inherit from class (%s)", ce->name->val, parent_ce->name->val);
726 } else if (UNEXPECTED(parent_ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_FINAL))) {
728 if (parent_ce->ce_flags & ZEND_ACC_INTERFACE) {
729 zend_error_noreturn(E_COMPILE_ERROR, "Class %s cannot extend from interface %s", ce->name->val, parent_ce->name->val);
730 } else if (parent_ce->ce_flags & ZEND_ACC_TRAIT) {
731 zend_error_noreturn(E_COMPILE_ERROR, "Class %s cannot extend from trait %s", ce->name->val, parent_ce
[all...]
H A Dzend_API.c2661 /* If parent_ce is not NULL then it inherits from parent_ce
2662 * If parent_ce is NULL and parent_name isn't then it looks for the parent and inherits from it
2663 * If both parent_ce and parent_name are NULL it does a regular class registration
2666 ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce) /* {{{ */ argument
2672 if (parent_ce) {
2673 zend_do_inheritance(register_class, parent_ce);
H A Dzend_compile.c1017 ZEND_API zend_class_entry *do_bind_inherited_class(const zend_op_array *op_array, const zend_op *opline, HashTable *class_table, zend_class_entry *parent_ce, zend_bool compile_time) /* {{{ */ argument
1048 zend_do_inheritance(ce, parent_ce);

Completed in 29 milliseconds