Home
last modified time | relevance | path

Searched refs:type_hint (Results 1 – 14 of 14) sorted by relevance

/PHP-7.1/Zend/
H A Dzend_execute.c648 switch (arg_info->type_hint) { in zend_verify_type_error_common()
748 switch (type_hint) { in zend_verify_weak_scalar_type_hint()
811 if (!arg_info->type_hint) { in zend_check_internal_type()
831 } else if (arg_info->type_hint == IS_CALLABLE) { in zend_check_internal_type()
833 } else if (arg_info->type_hint == IS_ITERABLE) { in zend_check_internal_type()
835 } else if (arg_info->type_hint == _IS_BOOL && in zend_check_internal_type()
890 if (!arg_info->type_hint) { in zend_check_type()
929 } else if (arg_info->type_hint == IS_CALLABLE) { in zend_check_type()
933 } else if (arg_info->type_hint == _IS_BOOL && in zend_check_type()
1045 if (ret_info->type_hint == IS_VOID) { in zend_verify_internal_return_type()
[all …]
H A Dzend_inheritance.c172 if (arg_info->type_hint == IS_ARRAY) { in zend_iterable_compatibility_check()
255 if (fe_arg_info->type_hint != proto_arg_info->type_hint) { in zend_do_perform_type_hint_check()
333 switch (fe_arg_info->type_hint) { in zend_do_perform_implementation_check()
346 if (proto_arg_info->type_hint && proto_arg_info->allow_null && !fe_arg_info->allow_null) { in zend_do_perform_implementation_check()
366 switch (proto->common.arg_info[-1].type_hint) { in zend_do_perform_implementation_check()
389 if (arg_info->type_hint != IS_UNDEF && arg_info->allow_null) { in zend_append_type_hint()
417 } else if (arg_info->type_hint) { in zend_append_type_hint()
418 if (arg_info->type_hint == IS_LONG) { in zend_append_type_hint()
420 } else if (arg_info->type_hint == _IS_BOOL) { in zend_append_type_hint()
423 const char *type_name = zend_get_type_by_const(arg_info->type_hint); in zend_append_type_hint()
H A Dzend_compile.h323 zend_uchar type_hint; member
333 zend_uchar type_hint; member
347 zend_uchar type_hint; member
H A Dzend_compile.c2340 if (return_info->type_hint == IS_VOID) { in zend_emit_return_type_check()
2354 if (return_info->type_hint != IS_UNDEF) { in zend_emit_return_type_check()
5062 arg_info->type_hint = ast->attr; in zend_compile_typename()
5073 arg_info->type_hint = type; in zend_compile_typename()
5084 arg_info->type_hint = IS_OBJECT; in zend_compile_typename()
5104 arg_infos->type_hint = 0; in zend_compile_params()
5192 arg_info->type_hint = 0; in zend_compile_params()
5209 if (arg_info->type_hint == IS_VOID) { in zend_compile_params()
5214 if (arg_info->type_hint == IS_ARRAY) { in zend_compile_params()
5233 } else switch (arg_info->type_hint) { in zend_compile_params()
[all …]
H A Dzend_API.h105 #define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null) { #name, NULL, type_hint, pass… argument
H A Dzend_API.c2192 if (info->type_hint) { in zend_register_functions()
2194 ZEND_ASSERT(info->type_hint == IS_OBJECT); in zend_register_functions()
2254 reg_function->common.arg_info[i].type_hint) { in zend_register_functions()
H A Dzend_vm_def.h3938 && ret_info->type_hint != IS_CALLABLE
3939 && ret_info->type_hint != IS_ITERABLE
3940 && !ZEND_SAME_FAKE_TYPE(ret_info->type_hint, Z_TYPE_P(retval_ptr))
H A Dzend_vm_execute.h7655 && ret_info->type_hint != IS_CALLABLE
7656 && ret_info->type_hint != IS_ITERABLE
7657 && !ZEND_SAME_FAKE_TYPE(ret_info->type_hint, Z_TYPE_P(retval_ptr))
14347 && ret_info->type_hint != IS_CALLABLE
14348 && ret_info->type_hint != IS_ITERABLE
21894 && ret_info->type_hint != IS_CALLABLE
21895 && ret_info->type_hint != IS_ITERABLE
30564 && ret_info->type_hint != IS_CALLABLE
30565 && ret_info->type_hint != IS_ITERABLE
42706 && ret_info->type_hint != IS_CALLABLE
[all …]
/PHP-7.1/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_types.phpt20 …i_stmt_get_result($link, $engine, $bind_type, $sql_type, $bind_value, $offset, $type_hint = null) {
85 if ($bind_res !== $bind_value && (!$type_hint || ($type_hint !== gettype($bind_res)))) {
88 gettype($bind_value), $bind_value, $type_hint,
H A Dmysqli_stmt_bind_result.phpt65 …_stmt_bind_result($link, $engine, $bind_type, $sql_type, $bind_value, $offset, $type_hint = null) {
130 if ($bind_res !== $bind_value && (!$type_hint || ($type_hint !== gettype($bind_res)))) {
133 gettype($bind_value), $bind_value, $type_hint,
/PHP-7.1/ext/opcache/Optimizer/
H A Dzend_inference.c1363 if (op_array->arg_info[opline->op1.num-1].type_hint == IS_LONG) { in zend_inference_calc_range()
1369 } else if (op_array->arg_info[opline->op1.num-1].type_hint == _IS_BOOL) { in zend_inference_calc_range()
2141 } else if (arg_info->type_hint != IS_UNDEF) { in zend_fetch_arg_info()
2142 if (arg_info->type_hint == IS_VOID) { in zend_fetch_arg_info()
2144 } else if (arg_info->type_hint == IS_CALLABLE) { in zend_fetch_arg_info()
2146 } else if (arg_info->type_hint == IS_ITERABLE) { in zend_fetch_arg_info()
2148 } else if (arg_info->type_hint == IS_ARRAY) { in zend_fetch_arg_info()
2150 } else if (arg_info->type_hint == _IS_BOOL) { in zend_fetch_arg_info()
2153 ZEND_ASSERT(arg_info->type_hint < IS_REFERENCE); in zend_fetch_arg_info()
2154 tmp |= 1 << arg_info->type_hint; in zend_fetch_arg_info()
[all …]
H A Dzend_optimizer.c525 || ret_info->type_hint == IS_CALLABLE in zend_optimizer_replace_by_const()
526 || !ZEND_SAME_FAKE_TYPE(ret_info->type_hint, Z_TYPE_P(val)) in zend_optimizer_replace_by_const()
H A Ddfa_pass.c329 if (info->type_hint == IS_CALLABLE) { in can_elide_return_type_check()
/PHP-7.1/ext/reflection/
H A Dphp_reflection.c720 } else if (arg_info->type_hint) { in _parameter_string()
721 string_printf(str, "%s ", zend_get_type_by_const(arg_info->type_hint)); in _parameter_string()
945 } else if (fptr->common.arg_info[-1].type_hint) { in _function_string()
946 string_printf(str, "%s ", zend_get_type_by_const(fptr->common.arg_info[-1].type_hint)); in _function_string()
2738 RETVAL_BOOL(param->arg_info->type_hint != 0); in ZEND_METHOD()
2756 ((zend_internal_arg_info*)param->arg_info)->type_hint : in ZEND_METHOD()
2757 param->arg_info->type_hint) == 0) in ZEND_METHOD()
2777 RETVAL_BOOL(param->arg_info->type_hint == IS_ARRAY); in ZEND_METHOD()
2793 RETVAL_BOOL(param->arg_info->type_hint == IS_CALLABLE); in ZEND_METHOD()
3024 RETVAL_BOOL(param->arg_info->type_hint != IS_OBJECT); in ZEND_METHOD()
[all …]

Completed in 285 milliseconds