/php-src/Zend/ |
H A D | zend_type_info.h | 30 #define MAY_BE_DOUBLE (1 << IS_DOUBLE) macro 35 #define MAY_BE_ANY (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE… 51 #define MAY_BE_ARRAY_OF_DOUBLE (MAY_BE_DOUBLE << MAY_BE_ARRAY_SHIFT)
|
H A D | zend_execute.c | 733 if ((type_mask & MAY_BE_DOUBLE) && Z_TYPE_P(arg) == IS_STRING) { in zend_verify_weak_scalar_type_hint() 753 if ((type_mask & MAY_BE_DOUBLE) && zend_parse_arg_double_weak(arg, &dval, 0)) { in zend_verify_weak_scalar_type_hint() 794 if ((type_mask & MAY_BE_DOUBLE) && zend_parse_arg_double_weak(arg, &dval, (uint32_t)-1)) { in zend_verify_weak_scalar_type_hint_no_sideeffect() 811 if (!(type_mask & MAY_BE_DOUBLE) || Z_TYPE_P(arg) != IS_LONG) { in zend_verify_scalar_type_hint() 818 && (type_mask & (MAY_BE_TRUE|MAY_BE_FALSE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING)); in zend_verify_scalar_type_hint() 1885 if (!(ZEND_TYPE_FULL_MASK(prop->type) & MAY_BE_DOUBLE)) { in zend_get_prop_not_accepting_double() 1983 if (!(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_incdec_typed_prop() 2005 && !(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_pre_incdec_property_zval() 2044 && !(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_post_incdec_property_zval() 3536 if ((type_mask & MAY_BE_DOUBLE) && zv_type == IS_LONG) { in i_zend_verify_type_assignable_zval() [all …]
|
H A D | zend_vm_def.h | 9712 ZEND_VM_HOT_TYPE_SPEC_HANDLER(ZEND_ADD, (op1_info == MAY_BE_DOUBLE && op2_info == MAY_BE_DOUBLE), Z… 9748 ZEND_VM_HOT_TYPE_SPEC_HANDLER(ZEND_SUB, (op1_info == MAY_BE_DOUBLE && op2_info == MAY_BE_DOUBLE), Z… 9786 ZEND_VM_HOT_TYPE_SPEC_HANDLER(ZEND_MUL, (op1_info == MAY_BE_DOUBLE && op2_info == MAY_BE_DOUBLE), Z… 9810 …_HANDLER(ZEND_IS_EQUAL|ZEND_IS_IDENTICAL, (op1_info == MAY_BE_DOUBLE && op2_info == MAY_BE_DOUBLE)… 9834 …(ZEND_IS_NOT_EQUAL|ZEND_IS_NOT_IDENTICAL, (op1_info == MAY_BE_DOUBLE && op2_info == MAY_BE_DOUBLE)… 9887 …VM_HOT_TYPE_SPEC_HANDLER(ZEND_IS_SMALLER, (op1_info == MAY_BE_DOUBLE && op2_info == MAY_BE_DOUBLE)… 9911 …PE_SPEC_HANDLER(ZEND_IS_SMALLER_OR_EQUAL, (op1_info == MAY_BE_DOUBLE && op2_info == MAY_BE_DOUBLE)… 10029 ZEND_VM_HOT_TYPE_SPEC_HANDLER(ZEND_QM_ASSIGN, (op1_info == MAY_BE_DOUBLE), ZEND_QM_ASSIGN_DOUBLE, C… 10039 …E_ANY|MAY_BE_UNDEF)-(MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE))))), ZEND_QM_…
|
/php-src/ext/intl/formatter/ |
H A D | formatter_functions_arginfo.h | 11 ZEND_ARG_TYPE_MASK(0, value, MAY_BE_LONG|MAY_BE_DOUBLE) 15 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_numfmt_parse, 0, 2, MAY_BE_LONG|MAY_BE_DOUBLE|MAY_B… 28 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_numfmt_parse_currency, 0, 3, MAY_BE_DOUBLE|MAY_BE_F…
|
H A D | formatter_arginfo.h | 17 ZEND_ARG_TYPE_MASK(0, num, MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 21 …URN_TYPE_MASK_EX(arginfo_class_NumberFormatter_parse, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE) 32 …_RETURN_TYPE_MASK_EX(arginfo_class_NumberFormatter_parseCurrency, 0, 2, MAY_BE_DOUBLE|MAY_BE_FALSE) 40 ZEND_ARG_TYPE_MASK(0, value, MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 43 …E_MASK_EX(arginfo_class_NumberFormatter_getAttribute, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE)
|
/php-src/Zend/Optimizer/ |
H A D | zend_func_info.c | 75 if ((t1 & (MAY_BE_DOUBLE|MAY_BE_STRING)) in zend_range_info() 76 || (t2 & (MAY_BE_DOUBLE|MAY_BE_STRING)) in zend_range_info() 77 || (t3 & (MAY_BE_DOUBLE|MAY_BE_STRING))) { in zend_range_info() 80 if ((t1 & ((MAY_BE_ANY|MAY_BE_UNDEF)-MAY_BE_DOUBLE)) in zend_range_info() 81 && (t2 & ((MAY_BE_ANY|MAY_BE_UNDEF)-MAY_BE_DOUBLE))) { in zend_range_info()
|
H A D | zend_inference.c | 2279 } else if (t1_type == MAY_BE_DOUBLE || t2_type == MAY_BE_DOUBLE) { in binary_op_result_type() 2280 tmp |= MAY_BE_DOUBLE; in binary_op_result_type() 2306 } else if (t1_type == MAY_BE_DOUBLE || t2_type == MAY_BE_DOUBLE) { in binary_op_result_type() 2307 tmp |= MAY_BE_DOUBLE; in binary_op_result_type() 2314 if (t1_type == MAY_BE_DOUBLE || t2_type == MAY_BE_DOUBLE) { in binary_op_result_type() 2315 tmp |= MAY_BE_DOUBLE; in binary_op_result_type() 2822 && (tmp & (MAY_BE_LONG|MAY_BE_DOUBLE)) == MAY_BE_DOUBLE) { in _zend_update_type_info() 2841 && (tmp & (MAY_BE_LONG|MAY_BE_DOUBLE)) == MAY_BE_DOUBLE) { in _zend_update_type_info() 2903 tmp |= MAY_BE_DOUBLE; in _zend_update_type_info() 2965 tmp |= MAY_BE_DOUBLE; in _zend_update_type_info() [all …]
|
H A D | dfa_pass.c | 333 uint32_t simple = MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE; in opline_supports_assign_contraction() 1189 if ((OP2_INFO() & MAY_BE_ANY) == MAY_BE_DOUBLE in zend_dfa_optimize_op_array() 1204 || ((OP2_INFO() & (MAY_BE_ANY|MAY_BE_UNDEF)) == MAY_BE_DOUBLE in zend_dfa_optimize_op_array() 1221 && (OP2_INFO() & ((MAY_BE_ANY|MAY_BE_UNDEF)-(MAY_BE_LONG|MAY_BE_DOUBLE))) == 0) { in zend_dfa_optimize_op_array() 1242 if ((OP1_INFO() & MAY_BE_ANY) == MAY_BE_DOUBLE in zend_dfa_optimize_op_array() 1255 || ((OP1_INFO() & (MAY_BE_ANY|MAY_BE_UNDEF)) == MAY_BE_DOUBLE in zend_dfa_optimize_op_array() 1266 && (OP1_INFO() & ((MAY_BE_ANY|MAY_BE_UNDEF)-(MAY_BE_LONG|MAY_BE_DOUBLE))) == 0) { in zend_dfa_optimize_op_array() 1471 …fo[result_var].type & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF) - (MAY_BE_LONG|MAY_BE_DOUBLE))) == 0) { in zend_dfa_optimize_op_array() 1485 …fo[result_var].type & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF) - (MAY_BE_LONG|MAY_BE_DOUBLE))) == 0) { in zend_dfa_optimize_op_array()
|
H A D | zend_func_infos.h | 77 F1("date_sunrise", MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE), 78 F1("date_sunset", MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE), 597 F1("microtime", MAY_BE_STRING|MAY_BE_DOUBLE), 600 F1("gettimeofday", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_LONG|MAY_BE_DOUBLE),
|
H A D | zend_dump.c | 237 if (info & MAY_BE_DOUBLE) { in zend_dump_type_info()
|
/php-src/ext/zend_test/ |
H A D | object_handlers_arginfo.h | 15 ZEND_ARG_TYPE_MASK(0, val, MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 92 …roperty_val_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_DOUBLE)); in register_class_FloatCastableNoOperations() 109 …default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG|MAY_BE_DOUBLE)); in register_class_NumericCastableNoOperations()
|
H A D | test_arginfo.h | 62 …H_RETURN_TYPE_MASK_EX(arginfo_zend_number_or_string, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE) 63 ZEND_ARG_TYPE_MASK(0, param, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 66 …X(arginfo_zend_number_or_string_or_null, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL) 67 ZEND_ARG_TYPE_MASK(0, param, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, NULL)
|
/php-src/ext/opcache/tests/jit/ |
H A D | bool_not_002.phpt | 2 JIT BOOL_NOT: 002 Incorrect function JIT for MAY_BE_DOUBLE|MAY_BE_UNDEF
|
/php-src/ext/intl/dateformat/ |
H A D | dateformat_arginfo.h | 73 …N_TYPE_MASK_EX(arginfo_class_IntlDateFormatter_parse, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE) 78 …K_EX(arginfo_class_IntlDateFormatter_parseToCalendar, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE)
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 5191 if (op2_info & MAY_BE_DOUBLE) { in zend_jit_math_helper() 5216 if (op1_info & MAY_BE_DOUBLE) { in zend_jit_math_helper() 5223 if (op2_info & MAY_BE_DOUBLE) { in zend_jit_math_helper() 5263 if (op2_info & MAY_BE_DOUBLE) { in zend_jit_math_helper() 5300 if (op1_info & MAY_BE_DOUBLE) { in zend_jit_math_helper() 6815 if (op2_info & MAY_BE_DOUBLE) { in zend_jit_cmp() 6841 if (op1_info & MAY_BE_DOUBLE) { in zend_jit_cmp() 6848 if (op2_info & MAY_BE_DOUBLE) { in zend_jit_cmp() 6889 if (op2_info & MAY_BE_DOUBLE) { in zend_jit_cmp() 6927 if (op1_info & MAY_BE_DOUBLE) { in zend_jit_cmp() [all …]
|
H A D | zend_jit_helpers.c | 2347 if (!(ZEND_TYPE_FULL_MASK(prop->type) & MAY_BE_DOUBLE)) { in zend_jit_get_prop_not_accepting_double() 2841 if (!(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_jit_inc_typed_prop() 2874 if (!(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_jit_dec_typed_prop() 2923 if (!(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_jit_post_inc_typed_prop() 2958 if (!(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_jit_post_dec_typed_prop() 2988 && !(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_jit_pre_inc_obj_helper() 3058 && !(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_jit_pre_dec_obj_helper() 3127 && !(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_jit_post_inc_obj_helper() 3188 && !(ZEND_TYPE_FULL_MASK(prop_info->type) & MAY_BE_DOUBLE)) { in zend_jit_post_dec_obj_helper()
|
H A D | zend_jit_trace.c | 1159 if (!(tssa->var_info[tssa->ops[idx].op1_use].type & (MAY_BE_LONG|MAY_BE_DOUBLE))) { in is_checked_guard() 1172 if (!(tssa->var_info[tssa->ops[idx].op1_use].type & (MAY_BE_LONG|MAY_BE_DOUBLE))) { in is_checked_guard() 1227 if (!(tssa->var_info[tssa->ops[idx].op1_use].type & (MAY_BE_LONG|MAY_BE_DOUBLE))) { in is_checked_guard() 2969 if (!(ssa->var_info[ssa_op->result_def].type & MAY_BE_DOUBLE) in zend_jit_trace_allocate_registers() 4399 } else if ((op1_def_info & (MAY_BE_ANY|MAY_BE_GUARD)) == (MAY_BE_DOUBLE|MAY_BE_GUARD) in zend_jit_trace() 4411 && (res_info & (MAY_BE_ANY|MAY_BE_GUARD)) == (MAY_BE_DOUBLE|MAY_BE_GUARD) in zend_jit_trace() 4470 } else if (!(op1_info & (MAY_BE_LONG|MAY_BE_DOUBLE)) || in zend_jit_trace() 4471 !(op2_info & (MAY_BE_LONG|MAY_BE_DOUBLE))) { in zend_jit_trace() 4547 || (res_info & (MAY_BE_ANY|MAY_BE_GUARD)) == (MAY_BE_DOUBLE|MAY_BE_GUARD)) in zend_jit_trace() 4549 && (op1_info & (MAY_BE_LONG|MAY_BE_DOUBLE)) in zend_jit_trace() [all …]
|
H A D | zend_jit.c | 1249 return (op1_info & (MAY_BE_LONG|MAY_BE_DOUBLE)) in zend_jit_supported_binary_op() 1250 && (op2_info & (MAY_BE_LONG|MAY_BE_DOUBLE)); in zend_jit_supported_binary_op() 1511 …(op1_info & MAY_BE_LONG) && (op1_def_info & MAY_BE_DOUBLE) && zend_may_overflow(opline, ssa_op, op… in zend_jit() 1581 } else if (!(op1_info & (MAY_BE_LONG|MAY_BE_DOUBLE)) || in zend_jit() 1582 !(op2_info & (MAY_BE_LONG|MAY_BE_DOUBLE))) { in zend_jit() 1623 …(op1_info & MAY_BE_LONG) && (op2_info & MAY_BE_LONG) && (res_info & MAY_BE_DOUBLE) && zend_may_ove… in zend_jit() 1683 …(op1_info & MAY_BE_LONG) && (op2_info & MAY_BE_LONG) && (op1_def_info & MAY_BE_DOUBLE) && zend_may… in zend_jit()
|
/php-src/ext/intl/ |
H A D | php_intl_arginfo.h | 26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intlcal_get_time, 0, 1, MAY_BE_DOUBLE|MAY_BE_FALSE) 350 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_datefmt_parse, 0, 2, MAY_BE_LONG|MAY_BE_DOUBLE|MAY_… 378 ZEND_ARG_TYPE_MASK(0, num, MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 382 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_numfmt_parse, 0, 2, MAY_BE_LONG|MAY_BE_DOUBLE|MAY_B… 395 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_numfmt_parse_currency, 0, 3, MAY_BE_DOUBLE|MAY_BE_F… 405 ZEND_ARG_TYPE_MASK(0, value, MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 408 …ITH_RETURN_TYPE_MASK_EX(arginfo_numfmt_get_attribute, 0, 2, MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE)
|
/php-src/ext/standard/ |
H A D | basic_functions_arginfo.h | 184 ZEND_ARG_TYPE_MASK(0, start, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 185 ZEND_ARG_TYPE_MASK(0, end, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 186 ZEND_ARG_TYPE_MASK(0, step, MAY_BE_LONG|MAY_BE_DOUBLE, "1") 321 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_array_sum, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE) 1617 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_abs, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE) 1618 ZEND_ARG_TYPE_MASK(0, num, MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 1622 ZEND_ARG_TYPE_MASK(0, num, MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 1628 ZEND_ARG_TYPE_MASK(0, num, MAY_BE_LONG|MAY_BE_DOUBLE, NULL) 1709 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bindec, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE) 1713 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hexdec, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE) [all …]
|
/php-src/ext/date/ |
H A D | php_date_arginfo.h | 211 …TURN_TYPE_MASK_EX(arginfo_date_sunrise, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE) 286 ZEND_ARG_TYPE_MASK(0, timestamp, MAY_BE_LONG|MAY_BE_DOUBLE, NULL)
|
/php-src/ext/intl/calendar/ |
H A D | calendar_arginfo.h | 94 …TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_IntlCalendar_getTime, 0, 0, MAY_BE_DOUBLE|MAY_BE_FALSE)
|
/php-src/ext/mysqli/ |
H A D | mysqli_arginfo.h | 126 …PE_MASK_EX(arginfo_mysqli_fetch_column, 0, 1, MAY_BE_NULL|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|… 628 …ginfo_class_mysqli_result_fetch_column, 0, 0, MAY_BE_NULL|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|…
|
/php-src/docs/source/miscellaneous/ |
H A D | stubs.rst | 557 …t_PI_name, &const_PI_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_DOUBLE));
|
/php-src/ext/reflection/ |
H A D | php_reflection.c | 3200 if (type_mask & MAY_BE_DOUBLE) { in ZEND_METHOD() 3201 append_type_mask(return_value, MAY_BE_DOUBLE); in ZEND_METHOD()
|