Lines Matching refs:fetch_type

1559 static inline bool class_name_refers_to_active_ce(zend_string *class_name, uint32_t fetch_type) /* …  in class_name_refers_to_active_ce()  argument
1564 if (fetch_type == ZEND_FETCH_CLASS_SELF && zend_is_scope_known()) { in class_name_refers_to_active_ce()
1567 return fetch_type == ZEND_FETCH_CLASS_DEFAULT in class_name_refers_to_active_ce()
1608 static void zend_ensure_valid_class_fetch_type(uint32_t fetch_type) /* {{{ */ in zend_ensure_valid_class_fetch_type() argument
1610 if (fetch_type != ZEND_FETCH_CLASS_DEFAULT && zend_is_scope_known()) { in zend_ensure_valid_class_fetch_type()
1614 fetch_type == ZEND_FETCH_CLASS_SELF ? "self" : in zend_ensure_valid_class_fetch_type()
1615 fetch_type == ZEND_FETCH_CLASS_PARENT ? "parent" : "static"); in zend_ensure_valid_class_fetch_type()
1616 } else if (fetch_type == ZEND_FETCH_CLASS_PARENT && !ce->parent_name) { in zend_ensure_valid_class_fetch_type()
1626 uint32_t fetch_type; in zend_try_compile_const_expr_resolve_class_name() local
1639 fetch_type = zend_get_class_fetch_type(Z_STR_P(class_name)); in zend_try_compile_const_expr_resolve_class_name()
1640 zend_ensure_valid_class_fetch_type(fetch_type); in zend_try_compile_const_expr_resolve_class_name()
1642 switch (fetch_type) { in zend_try_compile_const_expr_resolve_class_name()
1698 uint32_t fetch_type = zend_get_class_fetch_type(class_name); in zend_try_ct_eval_class_const() local
1702 if (class_name_refers_to_active_ce(class_name, fetch_type)) { in zend_try_ct_eval_class_const()
1704 …} else if (fetch_type == ZEND_FETCH_CLASS_DEFAULT && !(CG(compiler_options) & ZEND_COMPILE_NO_CONS… in zend_try_ct_eval_class_const()
2643 uint32_t fetch_type; in zend_compile_class_ref() local
2658 fetch_type = zend_get_class_fetch_type(name); in zend_compile_class_ref()
2660 if (fetch_type == ZEND_FETCH_CLASS_DEFAULT) { in zend_compile_class_ref()
2664 zend_ensure_valid_class_fetch_type(fetch_type); in zend_compile_class_ref()
2666 result->u.op.num = fetch_type | fetch_flags; in zend_compile_class_ref()
2684 fetch_type = zend_get_class_fetch_type(zend_ast_get_str(name_ast)); in zend_compile_class_ref()
2685 if (ZEND_FETCH_CLASS_DEFAULT == fetch_type) { in zend_compile_class_ref()
2689 zend_ensure_valid_class_fetch_type(fetch_type); in zend_compile_class_ref()
2691 result->u.op.num = fetch_type | fetch_flags; in zend_compile_class_ref()
6270 uint32_t fetch_type = zend_get_class_fetch_type_ast(ast); in zend_compile_single_typename() local
6271 if (fetch_type == ZEND_FETCH_CLASS_DEFAULT) { in zend_compile_single_typename()
6275 zend_ensure_valid_class_fetch_type(fetch_type); in zend_compile_single_typename()
9781 int fetch_type; in zend_compile_const_expr_class_const() local
9789 fetch_type = zend_get_class_fetch_type(class_name); in zend_compile_const_expr_class_const()
9791 if (ZEND_FETCH_CLASS_STATIC == fetch_type) { in zend_compile_const_expr_class_const()
9796 if (ZEND_FETCH_CLASS_DEFAULT == fetch_type) { in zend_compile_const_expr_class_const()
9821 uint32_t fetch_type = zend_get_class_fetch_type(class_name); in zend_compile_const_expr_class_name() local
9823 switch (fetch_type) { in zend_compile_const_expr_class_name()
9829 ast->attr = fetch_type; in zend_compile_const_expr_class_name()
9889 int fetch_type = zend_get_class_fetch_type(class_name); in zend_compile_const_expr_new() local
9890 if (ZEND_FETCH_CLASS_STATIC == fetch_type) { in zend_compile_const_expr_new()
9898 class_ast->attr = fetch_type << ZEND_CONST_EXPR_NEW_FETCH_TYPE_SHIFT; in zend_compile_const_expr_new()