Lines Matching refs:fetch_type

1341 static inline zend_bool class_name_refers_to_active_ce(zend_string *class_name, uint32_t fetch_type  in class_name_refers_to_active_ce()  argument
1346 if (fetch_type == ZEND_FETCH_CLASS_SELF && zend_is_scope_known()) { in class_name_refers_to_active_ce()
1349 return fetch_type == ZEND_FETCH_CLASS_DEFAULT in class_name_refers_to_active_ce()
1379 static void zend_ensure_valid_class_fetch_type(uint32_t fetch_type) /* {{{ */ in zend_ensure_valid_class_fetch_type() argument
1381 if (fetch_type != ZEND_FETCH_CLASS_DEFAULT && zend_is_scope_known()) { in zend_ensure_valid_class_fetch_type()
1385 fetch_type == ZEND_FETCH_CLASS_SELF ? "self" : in zend_ensure_valid_class_fetch_type()
1386 fetch_type == ZEND_FETCH_CLASS_PARENT ? "parent" : "static"); in zend_ensure_valid_class_fetch_type()
1387 } else if (fetch_type == ZEND_FETCH_CLASS_PARENT && !ce->parent_name) { in zend_ensure_valid_class_fetch_type()
1397 uint32_t fetch_type; in zend_try_compile_const_expr_resolve_class_name() local
1410 fetch_type = zend_get_class_fetch_type(Z_STR_P(class_name)); in zend_try_compile_const_expr_resolve_class_name()
1411 zend_ensure_valid_class_fetch_type(fetch_type); in zend_try_compile_const_expr_resolve_class_name()
1413 switch (fetch_type) { in zend_try_compile_const_expr_resolve_class_name()
1469 uint32_t fetch_type = zend_get_class_fetch_type(class_name); in zend_try_ct_eval_class_const() local
1473 if (class_name_refers_to_active_ce(class_name, fetch_type)) { in zend_try_ct_eval_class_const()
1475 …} else if (fetch_type == ZEND_FETCH_CLASS_DEFAULT && !(CG(compiler_options) & ZEND_COMPILE_NO_CONS… in zend_try_ct_eval_class_const()
2281 uint32_t fetch_type; in zend_compile_class_ref() local
2296 fetch_type = zend_get_class_fetch_type(name); in zend_compile_class_ref()
2298 if (fetch_type == ZEND_FETCH_CLASS_DEFAULT) { in zend_compile_class_ref()
2302 zend_ensure_valid_class_fetch_type(fetch_type); in zend_compile_class_ref()
2304 result->u.op.num = fetch_type | fetch_flags; in zend_compile_class_ref()
2322 fetch_type = zend_get_class_fetch_type(zend_ast_get_str(name_ast)); in zend_compile_class_ref()
2323 if (ZEND_FETCH_CLASS_DEFAULT == fetch_type) { in zend_compile_class_ref()
2327 zend_ensure_valid_class_fetch_type(fetch_type); in zend_compile_class_ref()
2329 result->u.op.num = fetch_type | fetch_flags; in zend_compile_class_ref()
5323 uint32_t fetch_type = zend_get_class_fetch_type_ast(ast); in zend_compile_typename() local
5324 if (fetch_type == ZEND_FETCH_CLASS_DEFAULT) { in zend_compile_typename()
5328 zend_ensure_valid_class_fetch_type(fetch_type); in zend_compile_typename()
8304 int fetch_type; in zend_compile_const_expr_class_const() local
8312 fetch_type = zend_get_class_fetch_type(class_name); in zend_compile_const_expr_class_const()
8314 if (ZEND_FETCH_CLASS_STATIC == fetch_type) { in zend_compile_const_expr_class_const()
8319 if (ZEND_FETCH_CLASS_DEFAULT == fetch_type) { in zend_compile_const_expr_class_const()
8331 *ast_ptr = zend_ast_create_constant(name, fetch_type | ZEND_FETCH_CLASS_EXCEPTION); in zend_compile_const_expr_class_const()
8340 uint32_t fetch_type = zend_get_class_fetch_type(class_name); in zend_compile_const_expr_class_name() local
8342 switch (fetch_type) { in zend_compile_const_expr_class_name()
8348 ast->attr = fetch_type; in zend_compile_const_expr_class_name()