Lines Matching refs:parent
803 void fetch_array_dim(znode *result, const znode *parent, const znode *dim TSRMLS_DC) /* {{{ */ in fetch_array_dim() argument
810 if (zend_is_function_or_method_call(parent)) { in fetch_array_dim()
813 SET_NODE(opline.op1, parent); in fetch_array_dim()
824 SET_NODE(opline.op1, parent); in fetch_array_dim()
845 void fetch_string_offset(znode *result, const znode *parent, const znode *offset TSRMLS_DC) /* {{{ … in fetch_string_offset() argument
847 fetch_array_dim(result, parent, offset TSRMLS_CC); in fetch_string_offset()
1068 int parent; in do_begin_loop() local
1070 parent = CG(context).current_brk_cont; in do_begin_loop()
1074 brk_cont_element->parent = parent; in do_begin_loop()
1088 …ntext).current_brk_cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].parent; in do_end_loop()
2369 current = op_array->brk_cont_array[current].parent; in zend_resolve_goto_label()
3002 if (!ce->parent) { in do_inherit_parent_constructor()
3007 ce->create_object = ce->parent->create_object; in do_inherit_parent_constructor()
3011 ce->get_iterator = ce->parent->get_iterator; in do_inherit_parent_constructor()
3014 ce->iterator_funcs.funcs = ce->parent->iterator_funcs.funcs; in do_inherit_parent_constructor()
3017 ce->__get = ce->parent->__get; in do_inherit_parent_constructor()
3020 ce->__set = ce->parent->__set; in do_inherit_parent_constructor()
3023 ce->__unset = ce->parent->__unset; in do_inherit_parent_constructor()
3026 ce->__isset = ce->parent->__isset; in do_inherit_parent_constructor()
3029 ce->__call = ce->parent->__call; in do_inherit_parent_constructor()
3032 ce->__callstatic = ce->parent->__callstatic; in do_inherit_parent_constructor()
3035 ce->__tostring = ce->parent->__tostring; in do_inherit_parent_constructor()
3038 ce->clone = ce->parent->clone; in do_inherit_parent_constructor()
3041 ce->serialize = ce->parent->serialize; in do_inherit_parent_constructor()
3044 ce->unserialize = ce->parent->unserialize; in do_inherit_parent_constructor()
3047 ce->destructor = ce->parent->destructor; in do_inherit_parent_constructor()
3050 if (ce->parent->constructor && ce->parent->constructor->common.fn_flags & ZEND_ACC_FINAL) { in do_inherit_parent_constructor()
3052 ce->parent->name, ce->parent->constructor->common.function_name, in do_inherit_parent_constructor()
3059 …if (zend_hash_find(&ce->parent->function_table, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTO… in do_inherit_parent_constructor()
3070 lc_parent_class_name = zend_str_tolower_dup(ce->parent->name, ce->parent->name_length); in do_inherit_parent_constructor()
3071 if (!zend_hash_exists(&ce->function_table, lc_parent_class_name, ce->parent->name_length+1) && in do_inherit_parent_constructor()
3072 …zend_hash_find(&ce->parent->function_table, lc_parent_class_name, ce->parent->name_length+1, (void… in do_inherit_parent_constructor()
3075 …zend_hash_update(&ce->function_table, lc_parent_class_name, ce->parent->name_length+1, function, s… in do_inherit_parent_constructor()
3083 ce->constructor = ce->parent->constructor; in do_inherit_parent_constructor()
3177 …->common.arg_info[i].class_name, "parent") && proto->common.scope && proto->common.scope->parent) { in zend_do_perform_implementation_check()
3178 proto_class_name = proto->common.scope->parent->name; in zend_do_perform_implementation_check()
3179 proto_class_name_len = proto->common.scope->parent->name_length; in zend_do_perform_implementation_check()
3278 } else if (!strcasecmp(arg_info->class_name, "parent") && fptr->common.scope->parent) { in zend_get_function_declaration()
3279 class_name = fptr->common.scope->parent->name; in zend_get_function_declaration()
3280 class_name_len = fptr->common.scope->parent->name_length; in zend_get_function_declaration()
3406 static void do_inheritance_check_on_method(zend_function *child, zend_function *parent TSRMLS_DC) /… in do_inheritance_check_on_method()
3409 zend_uint parent_flags = parent->common.fn_flags; in do_inheritance_check_on_method()
3411 if ((parent->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0 in do_inheritance_check_on_method()
3412 && parent->common.fn_flags & ZEND_ACC_ABSTRACT in do_inheritance_check_on_method()
3413 …&& parent->common.scope != (child->common.prototype ? child->common.prototype->common.scope : chil… in do_inheritance_check_on_method()
3416 parent->common.scope->name, in do_inheritance_check_on_method()
3422 …zend_error(E_COMPILE_ERROR, "Cannot override final method %s::%s()", ZEND_FN_SCOPE_NAME(parent), c… in do_inheritance_check_on_method()
3430 … make non static method %s::%s() static in class %s", ZEND_FN_SCOPE_NAME(parent), child->common.fu… in do_inheritance_check_on_method()
3432 … make static method %s::%s() non static in class %s", ZEND_FN_SCOPE_NAME(parent), child->common.fu… in do_inheritance_check_on_method()
3438 …e non abstract method %s::%s() abstract in class %s", ZEND_FN_SCOPE_NAME(parent), child->common.fu… in do_inheritance_check_on_method()
3447 ….function_name, zend_visibility_string(parent_flags), ZEND_FN_SCOPE_NAME(parent), (parent_flags&ZE… in do_inheritance_check_on_method()
3458 child->common.prototype = parent; in do_inheritance_check_on_method()
3459 …} else if (!(parent->common.fn_flags & ZEND_ACC_CTOR) || (parent->common.prototype && (parent->com… in do_inheritance_check_on_method()
3461 child->common.prototype = parent->common.prototype ? parent->common.prototype : parent; in do_inheritance_check_on_method()
3469 if (!zend_do_perform_implementation_check(child, parent TSRMLS_CC)) { in do_inheritance_check_on_method()
3470 char *method_prototype = zend_get_function_declaration(parent TSRMLS_CC); in do_inheritance_check_on_method()
3478 static zend_bool do_inherit_method_check(HashTable *child_function_table, zend_function *parent, co… in do_inherit_method_check() argument
3480 zend_uint parent_flags = parent->common.fn_flags; in do_inherit_method_check()
3491 do_inheritance_check_on_method(child, parent TSRMLS_CC); in do_inherit_method_check()
3500 zend_class_entry *parent_ce = ce->parent; in do_inherit_property_access_check()
3622 ce->parent = parent_ce; in zend_do_inheritance()
3763 zend_uint parent_iface_num = ce->parent ? ce->parent->num_interfaces : 0; in zend_do_implement_interface()
3803 zend_uint parent_trait_num = ce->parent ? ce->parent->num_traits : 0; in zend_do_implement_trait()
3845 if (ce->constructor && (!ce->parent || ce->constructor != ce->parent->constructor)) { in zend_add_magic_methods()
3870 if (ce->constructor && (!ce->parent || ce->constructor != ce->parent->constructor)) { in zend_add_magic_methods()
4882 …ntext).current_brk_cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].parent; in zend_do_switch_end()
6869 ce->parent = NULL; in zend_initialize_class_data()