Lines Matching refs:elem

413 	zval			*elem;  in umsg_format_helper()  local
419 ZEND_HASH_FOREACH_KEY_VAL(args, num_index, str_index, elem) { in umsg_format_helper()
472 convert_to_string_ex(elem); in umsg_format_helper()
476 Z_STRVAL_P(elem), Z_STRLEN_P(elem), &err.code); in umsg_format_helper()
481 "'%s'", Z_STRVAL_P(elem)); in umsg_format_helper()
493 if (Z_TYPE_P(elem) == IS_DOUBLE) { in umsg_format_helper()
494 d = Z_DVAL_P(elem); in umsg_format_helper()
495 } else if (Z_TYPE_P(elem) == IS_LONG) { in umsg_format_helper()
496 d = (double)Z_LVAL_P(elem); in umsg_format_helper()
498 SEPARATE_ZVAL_IF_NOT_REF(elem); in umsg_format_helper()
499 convert_scalar_to_number(elem); in umsg_format_helper()
500 d = (Z_TYPE_P(elem) == IS_DOUBLE) in umsg_format_helper()
501 ? Z_DVAL_P(elem) in umsg_format_helper()
502 : (double)Z_LVAL_P(elem); in umsg_format_helper()
511 if (Z_TYPE_P(elem) == IS_DOUBLE) { in umsg_format_helper()
512 if (Z_DVAL_P(elem) > (double)INT32_MAX || in umsg_format_helper()
513 Z_DVAL_P(elem) < (double)INT32_MIN) { in umsg_format_helper()
518 tInt32 = (int32_t)Z_DVAL_P(elem); in umsg_format_helper()
520 } else if (Z_TYPE_P(elem) == IS_LONG) { in umsg_format_helper()
521 if (Z_LVAL_P(elem) > INT32_MAX || in umsg_format_helper()
522 Z_LVAL_P(elem) < INT32_MIN) { in umsg_format_helper()
527 tInt32 = (int32_t)Z_LVAL_P(elem); in umsg_format_helper()
530 SEPARATE_ZVAL_IF_NOT_REF(elem); in umsg_format_helper()
531 convert_scalar_to_number(elem); in umsg_format_helper()
541 if (Z_TYPE_P(elem) == IS_DOUBLE) { in umsg_format_helper()
542 if (Z_DVAL_P(elem) > (double)U_INT64_MAX || in umsg_format_helper()
543 Z_DVAL_P(elem) < (double)U_INT64_MIN) { in umsg_format_helper()
548 tInt64 = (int64_t)Z_DVAL_P(elem); in umsg_format_helper()
550 } else if (Z_TYPE_P(elem) == IS_LONG) { in umsg_format_helper()
552 tInt64 = (int64_t)Z_LVAL_P(elem); in umsg_format_helper()
554 SEPARATE_ZVAL_IF_NOT_REF(elem); in umsg_format_helper()
555 convert_scalar_to_number(elem); in umsg_format_helper()
563 double dd = intl_zval_to_millis(elem, &err, "msgfmt_format"); in umsg_format_helper()
590 switch (Z_TYPE_P(elem)) { in umsg_format_helper()
592 formattable.setDouble(Z_DVAL_P(elem)); in umsg_format_helper()
596 convert_to_long_ex(elem); in umsg_format_helper()
599 formattable.setInt64((int64_t)Z_LVAL_P(elem)); in umsg_format_helper()