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.c694 static void do_inherit_class_constant(zend_string *name, zval *zv, zend_class_entry *ce, zend_class_entry *parent_ce) /* {{{ */ argument
698 if (parent_ce->type == ZEND_INTERNAL_CLASS) {
713 ZEND_API void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce) /* {{{ */ argument
722 if (UNEXPECTED(!(parent_ce->ce_flags & ZEND_ACC_INTERFACE))) {
723 zend_error_noreturn(E_COMPILE_ERROR, "Interface %s may not inherit from class (%s)", ce->name->val, parent_ce->name->val);
725 } else if (UNEXPECTED(parent_ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_FINAL))) {
727 if (parent_ce->ce_flags & ZEND_ACC_INTERFACE) {
728 zend_error_noreturn(E_COMPILE_ERROR, "Class %s cannot extend from interface %s", ce->name->val, parent_ce->name->val);
729 } else if (parent_ce->ce_flags & ZEND_ACC_TRAIT) {
730 zend_error_noreturn(E_COMPILE_ERROR, "Class %s cannot extend from trait %s", ce->name->val, parent_ce
[all...]
H A Dzend_API.c2693 /* If parent_ce is not NULL then it inherits from parent_ce
2694 * If parent_ce is NULL and parent_name isn't then it looks for the parent and inherits from it
2695 * If both parent_ce and parent_name are NULL it does a regular class registration
2698 ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce) /* {{{ */ argument
2704 if (parent_ce) {
2705 zend_do_inheritance(register_class, parent_ce);
H A Dzend_compile.c1073 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
1104 zend_do_inheritance(ce, parent_ce);

Completed in 24 milliseconds