Lines Matching refs:type

140 	zend_type type;  member
237 if (ZEND_TYPE_HAS_NAME(type_ref->type)) { in reflection_free_objects_storage()
238 zend_string_release(ZEND_TYPE_NAME(type_ref->type)); in reflection_free_objects_storage()
329 smart_str_append_printf(str, (ce->type == ZEND_USER_CLASS) ? "<user" : "<internal"); in _class_string()
330 if (ce->type == ZEND_INTERNAL_CLASS && ce->info.internal.module) { in _class_string()
374 if (ce->type == ZEND_USER_CLASS) { in _class_string()
541 const char *type = zend_zval_type_name(value); in _const_string() local
567 smart_str_appends(str, type); in _const_string()
596 zend_string *type_str = ZEND_TYPE_IS_SET(c->type) ? zend_type_to_string(c->type) : NULL; in _class_const_string()
597 const char *type = type_str ? ZSTR_VAL(type_str) : zend_zval_type_name(&c->value); in _class_const_string() local
603 indent, final, visibility, type, ZSTR_VAL(name)); in _class_const_string()
696 return fptr->type == ZEND_INTERNAL_FUNCTION in has_internal_arg_info()
709 if (ZEND_TYPE_IS_SET(arg_info->type)) { in _parameter_string()
710 zend_string *type_str = zend_type_to_string(arg_info->type); in _parameter_string()
725 if (fptr->type == ZEND_INTERNAL_FUNCTION) { in _parameter_string()
782 if (fptr->type != ZEND_USER_FUNCTION || !fptr->op_array.static_variables) { in _function_closure_string()
814 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.doc_comment) { in _function_string()
816 } else if (fptr->type == ZEND_INTERNAL_FUNCTION && fptr->internal_function.doc_comment) { in _function_string()
822 smart_str_append_printf(str, (fptr->type == ZEND_USER_FUNCTION) ? "<user" : "<internal"); in _function_string()
826 if (fptr->type == ZEND_INTERNAL_FUNCTION && ((zend_internal_function*)fptr)->module) { in _function_string()
887 if (fptr->type == ZEND_USER_FUNCTION) { in _function_string()
902 if (ZEND_TYPE_IS_SET(fptr->common.arg_info[-1].type)) { in _function_string()
903 zend_string *type_str = zend_type_to_string(fptr->common.arg_info[-1].type); in _function_string()
952 if (ZEND_TYPE_IS_SET(prop->type)) { in _property_string()
953 zend_string *type_str = zend_type_to_string(prop->type); in _property_string()
1011 …if (ce->type == ZEND_INTERNAL_CLASS && ce->info.internal.module && !strcasecmp(ce->info.internal.m… in _extension_class_string()
1025 if (module->type == MODULE_PERSISTENT) { in _extension_string()
1028 if (module->type == MODULE_TEMPORARY) { in _extension_string()
1043 switch(dep->type) { in _extension_string()
1109 if (fptr->common.type==ZEND_INTERNAL_FUNCTION in _extension_string()
1377 static reflection_type_kind get_type_kind(zend_type type) { in get_type_kind() argument
1378 uint32_t type_mask_without_null = ZEND_TYPE_PURE_MASK_WITHOUT_NULL(type); in get_type_kind()
1380 if (ZEND_TYPE_HAS_LIST(type)) { in get_type_kind()
1381 if (ZEND_TYPE_IS_INTERSECTION(type)) { in get_type_kind()
1384 ZEND_ASSERT(ZEND_TYPE_IS_UNION(type)); in get_type_kind()
1388 if (ZEND_TYPE_IS_COMPLEX(type)) { in get_type_kind()
1390 if (UNEXPECTED(ZEND_TYPE_IS_ITERABLE_FALLBACK(type))) { in get_type_kind()
1398 if (type_mask_without_null == MAY_BE_BOOL || ZEND_TYPE_PURE_MASK(type) == MAY_BE_ANY) { in get_type_kind()
1409 static void reflection_type_factory(zend_type type, zval *object, bool legacy_behavior) in reflection_type_factory() argument
1413 reflection_type_kind type_kind = get_type_kind(type); in reflection_type_factory()
1414 bool is_mixed = ZEND_TYPE_PURE_MASK(type) == MAY_BE_ANY; in reflection_type_factory()
1415 bool is_only_null = (ZEND_TYPE_PURE_MASK(type) == MAY_BE_NULL && !ZEND_TYPE_IS_COMPLEX(type)); in reflection_type_factory()
1432 reference->type = type; in reflection_type_factory()
1442 if (ZEND_TYPE_HAS_NAME(type)) { in reflection_type_factory()
1443 zend_string_addref(ZEND_TYPE_NAME(type)); in reflection_type_factory()
1543 if (param->fptr->type == ZEND_INTERNAL_FUNCTION) { in get_parameter_default()
1786 closure_func->type != ZEND_USER_FUNCTION || in ZEND_METHOD()
1853 RETURN_BOOL(fptr->type == ZEND_INTERNAL_FUNCTION); in ZEND_METHOD()
1867 RETURN_BOOL(fptr->type == ZEND_USER_FUNCTION); in ZEND_METHOD()
1906 if (fptr->type == ZEND_USER_FUNCTION) { in ZEND_METHOD()
1923 if (fptr->type == ZEND_USER_FUNCTION) { in ZEND_METHOD()
1940 if (fptr->type == ZEND_USER_FUNCTION) { in ZEND_METHOD()
1959 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.doc_comment) { in ZEND_METHOD()
1963 if (fptr->type == ZEND_INTERNAL_FUNCTION && ((zend_internal_function *) fptr)->doc_comment) { in ZEND_METHOD()
1988 fptr->type == ZEND_USER_FUNCTION ? fptr->op_array.filename : NULL); in ZEND_METHOD()
2004 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.static_variables != NULL) { in ZEND_METHOD()
2210 if (fptr->type != ZEND_INTERNAL_FUNCTION) { in ZEND_METHOD()
2236 if (fptr->type != ZEND_INTERNAL_FUNCTION) { in ZEND_METHOD()
2688 if (ZEND_TYPE_HAS_NAME(param->arg_info->type)) { in ZEND_METHOD()
2703 class_name = ZEND_TYPE_NAME(param->arg_info->type); in ZEND_METHOD()
2748 RETVAL_BOOL(ZEND_TYPE_IS_SET(param->arg_info->type)); in ZEND_METHOD()
2763 if (!ZEND_TYPE_IS_SET(param->arg_info->type)) { in ZEND_METHOD()
2766 reflection_type_factory(param->arg_info->type, return_value, 1); in ZEND_METHOD()
2783 if (ZEND_TYPE_IS_ITERABLE_FALLBACK(param->arg_info->type)) { in ZEND_METHOD()
2787 type_mask = ZEND_TYPE_PURE_MASK_WITHOUT_NULL(param->arg_info->type); in ZEND_METHOD()
2804 type_mask = ZEND_TYPE_PURE_MASK_WITHOUT_NULL(param->arg_info->type); in ZEND_METHOD()
2820 RETVAL_BOOL(!ZEND_TYPE_IS_SET(param->arg_info->type) in ZEND_METHOD()
2821 || ZEND_TYPE_ALLOW_NULL(param->arg_info->type)); in ZEND_METHOD()
2869 param->fptr->type == ZEND_USER_FUNCTION ? param->fptr->op_array.filename : NULL); in ZEND_METHOD()
2914 if (param->fptr->type == ZEND_INTERNAL_FUNCTION) { in ZEND_METHOD()
3063 RETVAL_BOOL(ZEND_TYPE_ALLOW_NULL(param->type)); in ZEND_METHOD()
3068 static zend_string *zend_named_reflection_type_to_string(zend_type type) { in zend_named_reflection_type_to_string() argument
3069 if (ZEND_TYPE_IS_ITERABLE_FALLBACK(type)) { in zend_named_reflection_type_to_string()
3071 if (ZEND_TYPE_FULL_MASK(type) & MAY_BE_NULL) { in zend_named_reflection_type_to_string()
3076 return zend_type_to_string(type); in zend_named_reflection_type_to_string()
3079 static zend_string *zend_type_to_string_without_null(zend_type type) { in zend_type_to_string_without_null() argument
3080 ZEND_TYPE_FULL_MASK(type) &= ~MAY_BE_NULL; in zend_type_to_string_without_null()
3081 return zend_named_reflection_type_to_string(type); in zend_type_to_string_without_null()
3095 RETURN_STR(zend_named_reflection_type_to_string(param->type)); in ZEND_METHOD()
3111 RETURN_STR(zend_type_to_string_without_null(param->type)); in ZEND_METHOD()
3113 RETURN_STR(zend_named_reflection_type_to_string(param->type)); in ZEND_METHOD()
3128 if (ZEND_TYPE_IS_ITERABLE_FALLBACK(param->type)) { in ZEND_METHOD()
3133 RETVAL_BOOL(ZEND_TYPE_IS_ONLY_MASK(param->type) in ZEND_METHOD()
3134 && !(ZEND_TYPE_FULL_MASK(param->type) & MAY_BE_STATIC)); in ZEND_METHOD()
3138 static void append_type(zval *return_value, zend_type type) { in append_type() argument
3141 if (ZEND_TYPE_IS_ITERABLE_FALLBACK(type)) { in append_type()
3142 ZEND_TYPE_FULL_MASK(type) &= ~_ZEND_TYPE_ITERABLE_BIT; in append_type()
3145 reflection_type_factory(type, &reflection_type, 0); in append_type()
3166 if (ZEND_TYPE_HAS_LIST(param->type)) { in ZEND_METHOD()
3168 ZEND_TYPE_LIST_FOREACH(ZEND_TYPE_LIST(param->type), list_type) { in ZEND_METHOD()
3171 } else if (ZEND_TYPE_HAS_NAME(param->type)) { in ZEND_METHOD()
3172 zend_string *name = ZEND_TYPE_NAME(param->type); in ZEND_METHOD()
3176 type_mask = ZEND_TYPE_PURE_MASK(param->type); in ZEND_METHOD()
3225 ZEND_ASSERT(ZEND_TYPE_HAS_LIST(param->type)); in ZEND_METHOD()
3228 ZEND_TYPE_LIST_FOREACH(ZEND_TYPE_LIST(param->type), list_type) { in ZEND_METHOD()
3655 reflection_type_factory(fptr->common.arg_info[-1].type, return_value, 1); in ZEND_METHOD()
3691 reflection_type_factory(fptr->common.arg_info[-1].type, return_value, 1); in ZEND_METHOD()
3908 if (!ZEND_TYPE_IS_SET(ref->type)) { in ZEND_METHOD()
3912 reflection_type_factory(ref->type, return_value, 1); in ZEND_METHOD()
3926 RETVAL_BOOL(ZEND_TYPE_IS_SET(ref->type)); in ZEND_METHOD()
4056 ref->ce->type == ZEND_USER_CLASS ? ref->ce->info.user.filename : NULL); in ZEND_METHOD()
4211 if (ZEND_TYPE_IS_SET(prop_info->type) && Z_ISUNDEF_P(prop)) { in ZEND_METHOD()
4298 if (ZEND_TYPE_IS_SET(prop_info->type) && !zend_verify_property_type(prop_info, value, 0)) { in ZEND_METHOD()
4368 RETURN_BOOL(ce->type == ZEND_INTERNAL_CLASS); in ZEND_METHOD()
4382 RETURN_BOOL(ce->type == ZEND_USER_CLASS); in ZEND_METHOD()
4410 if (ce->type == ZEND_USER_CLASS) { in ZEND_METHOD()
4427 if (ce->type == ZEND_USER_CLASS) { in ZEND_METHOD()
4444 if (ce->type == ZEND_USER_CLASS) { in ZEND_METHOD()
4478 ce->type == ZEND_USER_CLASS ? ce->info.user.filename : NULL); in ZEND_METHOD()
5121 if (ce->type == ZEND_INTERNAL_CLASS in ZEND_METHOD()
5462 if ((ce->type == ZEND_INTERNAL_CLASS) && ce->info.internal.module) { in ZEND_METHOD()
5480 if ((ce->type == ZEND_INTERNAL_CLASS) && ce->info.internal.module) { in ZEND_METHOD()
5915 ref->prop->ce->type == ZEND_USER_CLASS ? ref->prop->ce->info.user.filename : NULL); in ZEND_METHOD()
5942 if (!ref->prop || !ZEND_TYPE_IS_SET(ref->prop->type)) { in ZEND_METHOD()
5946 reflection_type_factory(ref->prop->type, return_value, 1); in ZEND_METHOD()
5962 RETVAL_BOOL(ref->prop && ZEND_TYPE_IS_SET(ref->prop->type)); in ZEND_METHOD()
6129 if (fptr->common.type==ZEND_INTERNAL_FUNCTION in ZEND_METHOD()
6198 …if (ce->type == ZEND_INTERNAL_CLASS && ce->info.internal.module && !strcasecmp(ce->info.internal.m… in add_extension_class()
6284 switch(dep->type) { in ZEND_METHOD()
6350 RETURN_BOOL(module->type == MODULE_PERSISTENT); in ZEND_METHOD()
6365 RETURN_BOOL(module->type == MODULE_TEMPORARY); in ZEND_METHOD()
6755 if (ce->type == ZEND_USER_CLASS) { in ZEND_METHOD()
6904 zend_type type = ZEND_TYPE_INIT_CODE(ce->enum_backing_type, 0, 0); in ZEND_METHOD() local
6905 reflection_type_factory(type, return_value, 0); in ZEND_METHOD()
7062 …cute_data && (!prev_execute_data->func || !ZEND_USER_CODE(prev_execute_data->func->common.type))) { in ZEND_METHOD()
7065 …_execute_data && prev_execute_data->func && ZEND_USER_CODE(prev_execute_data->func->common.type)) { in ZEND_METHOD()
7086 …cute_data && (!prev_execute_data->func || !ZEND_USER_CODE(prev_execute_data->func->common.type))) { in ZEND_METHOD()
7089 …_execute_data && prev_execute_data->func && ZEND_USER_CODE(prev_execute_data->func->common.type)) { in ZEND_METHOD()