Lines Matching refs:arg
135 ZEND_API const char *zend_zval_type_name(const zval *arg) /* {{{ */ in zend_zval_type_name() argument
137 ZVAL_DEREF(arg); in zend_zval_type_name()
139 if (Z_ISUNDEF_P(arg)) { in zend_zval_type_name()
143 if (Z_TYPE_P(arg) == IS_OBJECT) { in zend_zval_type_name()
144 return ZSTR_VAL(Z_OBJCE_P(arg)->name); in zend_zval_type_name()
147 return zend_get_type_by_const(Z_TYPE_P(arg)); in zend_zval_type_name()
153 ZEND_API zend_string *zend_zval_get_legacy_type(const zval *arg) /* {{{ */ in zend_zval_get_legacy_type() argument
155 switch (Z_TYPE_P(arg)) { in zend_zval_get_legacy_type()
172 if (zend_rsrc_list_get_rsrc_type(Z_RES_P(arg))) { in zend_zval_get_legacy_type()
212 …or(int error_code, uint32_t num, char *name, zend_expected_type expected_type, zval *arg) /* {{{ */ in zend_wrong_parameter_error() argument
222 zend_wrong_parameter_class_error(num, name, arg); in zend_wrong_parameter_error()
225 zend_wrong_parameter_class_or_null_error(num, name, arg); in zend_wrong_parameter_error()
228 zend_wrong_parameter_class_or_string_error(num, name, arg); in zend_wrong_parameter_error()
231 zend_wrong_parameter_class_or_string_or_null_error(num, name, arg); in zend_wrong_parameter_error()
234 zend_wrong_parameter_class_or_long_error(num, name, arg); in zend_wrong_parameter_error()
237 zend_wrong_parameter_class_or_long_or_null_error(num, name, arg); in zend_wrong_parameter_error()
240 zend_wrong_parameter_type_error(num, expected_type, arg); in zend_wrong_parameter_error()
253 …end_wrong_parameter_type_error(uint32_t num, zend_expected_type expected_type, zval *arg) /* {{{ */ in zend_wrong_parameter_type_error() argument
265 && Z_TYPE_P(arg) == IS_STRING) { in zend_wrong_parameter_type_error()
270 …t_type_error(num, "must be %s, %s given", expected_error[expected_type], zend_zval_type_name(arg)); in zend_wrong_parameter_type_error()
274 …ZEND_FASTCALL zend_wrong_parameter_class_error(uint32_t num, const char *name, zval *arg) /* {{{ */ in zend_wrong_parameter_class_error() argument
280 zend_argument_type_error(num, "must be of type %s, %s given", name, zend_zval_type_name(arg)); in zend_wrong_parameter_class_error()
284 …TCALL zend_wrong_parameter_class_or_null_error(uint32_t num, const char *name, zval *arg) /* {{{ */ in zend_wrong_parameter_class_or_null_error() argument
290 zend_argument_type_error(num, "must be of type ?%s, %s given", name, zend_zval_type_name(arg)); in zend_wrong_parameter_class_or_null_error()
294 …TCALL zend_wrong_parameter_class_or_long_error(uint32_t num, const char *name, zval *arg) /* {{{ */ in zend_wrong_parameter_class_or_long_error() argument
300 zend_argument_type_error(num, "must be of type %s|int, %s given", name, zend_zval_type_name(arg)); in zend_wrong_parameter_class_or_long_error()
304 …nd_wrong_parameter_class_or_long_or_null_error(uint32_t num, const char *name, zval *arg) /* {{{ */ in zend_wrong_parameter_class_or_long_or_null_error() argument
310 …_argument_type_error(num, "must be of type %s|int|null, %s given", name, zend_zval_type_name(arg)); in zend_wrong_parameter_class_or_long_or_null_error()
314 …ALL zend_wrong_parameter_class_or_string_error(uint32_t num, const char *name, zval *arg) /* {{{ */ in zend_wrong_parameter_class_or_string_error() argument
320 …zend_argument_type_error(num, "must be of type %s|string, %s given", name, zend_zval_type_name(arg… in zend_wrong_parameter_class_or_string_error()
324 …_wrong_parameter_class_or_string_or_null_error(uint32_t num, const char *name, zval *arg) /* {{{ */ in zend_wrong_parameter_class_or_string_or_null_error() argument
330 …gument_type_error(num, "must be of type %s|string|null, %s given", name, zend_zval_type_name(arg)); in zend_wrong_parameter_class_or_string_or_null_error()
412 ZEND_API bool ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pce, uint32_t num, b… in zend_parse_arg_class() argument
416 if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_class()
420 if (!try_convert_to_string(arg)) { in zend_parse_arg_class()
425 *pce = zend_lookup_class(Z_STR_P(arg)); in zend_parse_arg_class()
428 …r(num, "must be a class name derived from %s, %s given", ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg)); in zend_parse_arg_class()
434 zend_argument_type_error(num, "must be a valid class name, %s given", Z_STRVAL_P(arg)); in zend_parse_arg_class()
470 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, bool *dest, uint32_t arg_num) /* {{… in zend_parse_arg_bool_weak() argument
472 if (EXPECTED(Z_TYPE_P(arg) <= IS_STRING)) { in zend_parse_arg_bool_weak()
473 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("bool", arg_num)) { in zend_parse_arg_bool_weak()
476 *dest = zend_is_true(arg); in zend_parse_arg_bool_weak()
484 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, bool *dest, uint32_t arg_num) /* {{… in zend_parse_arg_bool_slow() argument
489 return zend_parse_arg_bool_weak(arg, dest, arg_num); in zend_parse_arg_bool_slow()
493 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest, uint32_t arg_num) … in zend_parse_arg_long_weak() argument
495 if (EXPECTED(Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_long_weak()
496 if (UNEXPECTED(zend_isnan(Z_DVAL_P(arg)))) { in zend_parse_arg_long_weak()
499 if (UNEXPECTED(!ZEND_DOUBLE_FITS_LONG(Z_DVAL_P(arg)))) { in zend_parse_arg_long_weak()
502 zend_long lval = zend_dval_to_lval(Z_DVAL_P(arg)); in zend_parse_arg_long_weak()
503 if (UNEXPECTED(!zend_is_long_compatible(Z_DVAL_P(arg), lval))) { in zend_parse_arg_long_weak()
507 zend_incompatible_double_to_long_error(Z_DVAL_P(arg)); in zend_parse_arg_long_weak()
515 } else if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_long_weak()
519 if (UNEXPECTED((type = is_numeric_str_function(Z_STR_P(arg), dest, &d)) != IS_LONG)) { in zend_parse_arg_long_weak()
535 zend_incompatible_string_to_long_error(Z_STR_P(arg)); in zend_parse_arg_long_weak()
549 } else if (EXPECTED(Z_TYPE_P(arg) < IS_TRUE)) { in zend_parse_arg_long_weak()
550 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("int", arg_num)) { in zend_parse_arg_long_weak()
554 } else if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_long_weak()
563 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest, uint32_t arg_num) … in zend_parse_arg_long_slow() argument
568 return zend_parse_arg_long_weak(arg, dest, arg_num); in zend_parse_arg_long_slow()
572 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest, uint32_t arg_num) /… in zend_parse_arg_double_weak() argument
574 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_double_weak()
575 *dest = (double)Z_LVAL_P(arg); in zend_parse_arg_double_weak()
576 } else if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_double_weak()
580 if (UNEXPECTED((type = is_numeric_str_function(Z_STR_P(arg), &l, dest)) != IS_DOUBLE)) { in zend_parse_arg_double_weak()
590 } else if (EXPECTED(Z_TYPE_P(arg) < IS_TRUE)) { in zend_parse_arg_double_weak()
591 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("float", arg_num)) { in zend_parse_arg_double_weak()
595 } else if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_double_weak()
604 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest, uint32_t arg_num) /… in zend_parse_arg_double_slow() argument
606 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_double_slow()
608 *dest = (double)Z_LVAL_P(arg); in zend_parse_arg_double_slow()
612 return zend_parse_arg_double_weak(arg, dest, arg_num); in zend_parse_arg_double_slow()
616 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow(zval *arg, zval **dest, uint32_t arg_num) /*… in zend_parse_arg_number_slow() argument
621 if (Z_TYPE_P(arg) == IS_STRING) { in zend_parse_arg_number_slow()
622 zend_string *str = Z_STR_P(arg); in zend_parse_arg_number_slow()
627 ZVAL_LONG(arg, lval); in zend_parse_arg_number_slow()
629 ZVAL_DOUBLE(arg, dval); in zend_parse_arg_number_slow()
634 } else if (Z_TYPE_P(arg) < IS_TRUE) { in zend_parse_arg_number_slow()
635 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("int|float", arg_num)) { in zend_parse_arg_number_slow()
638 ZVAL_LONG(arg, 0); in zend_parse_arg_number_slow()
639 } else if (Z_TYPE_P(arg) == IS_TRUE) { in zend_parse_arg_number_slow()
640 ZVAL_LONG(arg, 1); in zend_parse_arg_number_slow()
644 *dest = arg; in zend_parse_arg_number_slow()
649 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest, uint32_t arg_num… in zend_parse_arg_str_weak() argument
651 if (EXPECTED(Z_TYPE_P(arg) < IS_STRING)) { in zend_parse_arg_str_weak()
652 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("string", arg_num)) { in zend_parse_arg_str_weak()
655 convert_to_string(arg); in zend_parse_arg_str_weak()
656 *dest = Z_STR_P(arg); in zend_parse_arg_str_weak()
657 } else if (UNEXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_str_weak()
658 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_str_weak()
662 ZVAL_COPY_VALUE(arg, &obj); in zend_parse_arg_str_weak()
663 *dest = Z_STR_P(arg); in zend_parse_arg_str_weak()
674 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest, uint32_t arg_num… in zend_parse_arg_str_slow() argument
679 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_parse_arg_str_slow()
683 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_or_long_slow(zval *arg, zend_string **dest_str, zend… in zend_parse_arg_str_or_long_slow() argument
688 if (zend_parse_arg_long_weak(arg, dest_long, arg_num)) { in zend_parse_arg_str_or_long_slow()
691 } else if (zend_parse_arg_str_weak(arg, dest_str, arg_num)) { in zend_parse_arg_str_or_long_slow()
700 static const char *zend_parse_arg_impl(zval *arg, va_list *va, const char **spec, char **error, uin… in zend_parse_arg_impl() argument
706 zval *real_arg = arg; in zend_parse_arg_impl()
709 ZVAL_DEREF(arg); in zend_parse_arg_impl()
712 SEPARATE_ZVAL_NOREF(arg); in zend_parse_arg_impl()
713 real_arg = arg; in zend_parse_arg_impl()
733 if (!zend_parse_arg_long(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
748 if (!zend_parse_arg_double(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
758 if (!zend_parse_arg_number(arg, p, check_null, arg_num)) { in zend_parse_arg_impl()
768 if (!zend_parse_arg_string(arg, p, pl, check_null, arg_num)) { in zend_parse_arg_impl()
778 if (!zend_parse_arg_path(arg, p, pl, check_null, arg_num)) { in zend_parse_arg_impl()
779 if (Z_TYPE_P(arg) == IS_STRING) { in zend_parse_arg_impl()
792 if (!zend_parse_arg_path_str(arg, str, check_null, arg_num)) { in zend_parse_arg_impl()
793 if (Z_TYPE_P(arg) == IS_STRING) { in zend_parse_arg_impl()
806 if (!zend_parse_arg_str(arg, str, check_null, arg_num)) { in zend_parse_arg_impl()
821 if (!zend_parse_arg_bool(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
831 if (!zend_parse_arg_resource(arg, p, check_null)) { in zend_parse_arg_impl()
842 if (!zend_parse_arg_array(arg, p, check_null, c == 'A')) { in zend_parse_arg_impl()
853 if (!zend_parse_arg_array_ht(arg, p, check_null, c == 'H', separate)) { in zend_parse_arg_impl()
863 if (!zend_parse_arg_object(arg, p, NULL, check_null)) { in zend_parse_arg_impl()
874 if (!zend_parse_arg_object(arg, p, ce, check_null)) { in zend_parse_arg_impl()
877 …_spprintf(error, 0, "must be of type ?%s, %s given", ZSTR_VAL(ce->name), zend_zval_type_name(arg)); in zend_parse_arg_impl()
894 if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_impl()
898 if (!try_convert_to_string(arg)) { in zend_parse_arg_impl()
903 if ((lookup = zend_lookup_class(Z_STR_P(arg))) == NULL) { in zend_parse_arg_impl()
911 ZSTR_VAL(ce_base->name), check_null ? " or null" : "", Z_STRVAL_P(arg)); in zend_parse_arg_impl()
918 check_null ? " or null" : "", Z_STRVAL_P(arg)); in zend_parse_arg_impl()
932 if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_impl()
938 if (zend_fcall_info_init(arg, 0, fci, fcc, NULL, &is_callable_error) == SUCCESS) { in zend_parse_arg_impl()
978 static zend_result zend_parse_arg(uint32_t arg_num, zval *arg, va_list *va, const char **spec, int … in zend_parse_arg() argument
983 expected_type = zend_parse_arg_impl(arg, va, spec, &error, arg_num); in zend_parse_arg()
997 …ument_type_error(arg_num, "must be of type %s, %s given", expected_type, zend_zval_type_name(arg)); in zend_parse_arg()
1010 ZEND_API zend_result zend_parse_parameter(int flags, uint32_t arg_num, zval *arg, const char *spec,… in zend_parse_parameter() argument
1016 ret = zend_parse_arg(arg_num, arg, &va, &spec, flags); in zend_parse_parameter()
1039 zval *arg; in zend_parse_va_args() local
1158 arg = ZEND_CALL_ARG(EG(current_execute_data), i + 1); in zend_parse_va_args()
1160 if (zend_parse_arg(i+1, arg, va, &type_spec, flags) == FAILURE) { in zend_parse_va_args()
1633 static zend_always_inline zend_result _object_and_properties_init(zval *arg, zend_class_entry *clas… in _object_and_properties_init() argument
1645 ZVAL_NULL(arg); in _object_and_properties_init()
1646 Z_OBJ_P(arg) = NULL; in _object_and_properties_init()
1652 ZVAL_NULL(arg); in _object_and_properties_init()
1653 Z_OBJ_P(arg) = NULL; in _object_and_properties_init()
1661 ZVAL_OBJ(arg, obj); in _object_and_properties_init()
1668 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init()
1674 ZEND_API zend_result object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable … in object_and_properties_init() argument
1676 return _object_and_properties_init(arg, class_type, properties); in object_and_properties_init()
1680 ZEND_API zend_result object_init_ex(zval *arg, zend_class_entry *class_type) /* {{{ */ in object_init_ex() argument
1682 return _object_and_properties_init(arg, class_type, NULL); in object_init_ex()
1686 ZEND_API void object_init(zval *arg) /* {{{ */ in object_init() argument
1688 ZVAL_OBJ(arg, zend_objects_new(zend_standard_class_def)); in object_init()
1692 ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n) /* {{{ */ in add_assoc_long_ex() argument
1697 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_long_ex()
1701 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len) /* {{{ */ in add_assoc_null_ex() argument
1706 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_null_ex()
1710 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b) /* {{{ */ in add_assoc_bool_ex() argument
1715 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_bool_ex()
1719 ZEND_API void add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r) /… in add_assoc_resource_ex() argument
1724 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_resource_ex()
1728 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d) /* {{{ */ in add_assoc_double_ex() argument
1733 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_double_ex()
1737 ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str) /* {{{… in add_assoc_str_ex() argument
1742 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_str_ex()
1746 ZEND_API void add_assoc_string_ex(zval *arg, const char *key, size_t key_len, const char *str) /* {… in add_assoc_string_ex() argument
1751 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_string_ex()
1755 ZEND_API void add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, siz… in add_assoc_stringl_ex() argument
1760 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_stringl_ex()
1764 ZEND_API void add_assoc_array_ex(zval *arg, const char *key, size_t key_len, zend_array *arr) /* {{… in add_assoc_array_ex() argument
1769 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_array_ex()
1773 ZEND_API void add_assoc_object_ex(zval *arg, const char *key, size_t key_len, zend_object *obj) /* … in add_assoc_object_ex() argument
1778 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_object_ex()
1782 ZEND_API void add_assoc_reference_ex(zval *arg, const char *key, size_t key_len, zend_reference *re… in add_assoc_reference_ex() argument
1787 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_reference_ex()
1791 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) /* {{{ */ in add_assoc_zval_ex() argument
1793 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, value); in add_assoc_zval_ex()
1797 ZEND_API void add_index_long(zval *arg, zend_ulong index, zend_long n) /* {{{ */ in add_index_long() argument
1802 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_long()
1806 ZEND_API void add_index_null(zval *arg, zend_ulong index) /* {{{ */ in add_index_null() argument
1811 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_null()
1815 ZEND_API void add_index_bool(zval *arg, zend_ulong index, bool b) /* {{{ */ in add_index_bool() argument
1820 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_bool()
1824 ZEND_API void add_index_resource(zval *arg, zend_ulong index, zend_resource *r) /* {{{ */ in add_index_resource() argument
1829 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_resource()
1833 ZEND_API void add_index_double(zval *arg, zend_ulong index, double d) /* {{{ */ in add_index_double() argument
1838 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_double()
1842 ZEND_API void add_index_str(zval *arg, zend_ulong index, zend_string *str) /* {{{ */ in add_index_str() argument
1847 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_str()
1851 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str) /* {{{ */ in add_index_string() argument
1856 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_string()
1860 ZEND_API void add_index_stringl(zval *arg, zend_ulong index, const char *str, size_t length) /* {{{… in add_index_stringl() argument
1865 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_stringl()
1869 ZEND_API void add_index_array(zval *arg, zend_ulong index, zend_array *arr) /* {{{ */ in add_index_array() argument
1874 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_array()
1878 ZEND_API void add_index_object(zval *arg, zend_ulong index, zend_object *obj) /* {{{ */ in add_index_object() argument
1883 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_object()
1887 ZEND_API void add_index_reference(zval *arg, zend_ulong index, zend_reference *ref) /* {{{ */ in add_index_reference() argument
1892 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_reference()
1896 ZEND_API zend_result add_next_index_long(zval *arg, zend_long n) /* {{{ */ in add_next_index_long() argument
1901 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_long()
1905 ZEND_API zend_result add_next_index_null(zval *arg) /* {{{ */ in add_next_index_null() argument
1910 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_null()
1914 ZEND_API zend_result add_next_index_bool(zval *arg, bool b) /* {{{ */ in add_next_index_bool() argument
1919 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_bool()
1923 ZEND_API zend_result add_next_index_resource(zval *arg, zend_resource *r) /* {{{ */ in add_next_index_resource() argument
1928 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_resource()
1932 ZEND_API zend_result add_next_index_double(zval *arg, double d) /* {{{ */ in add_next_index_double() argument
1937 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_double()
1941 ZEND_API zend_result add_next_index_str(zval *arg, zend_string *str) /* {{{ */ in add_next_index_str() argument
1946 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_str()
1950 ZEND_API zend_result add_next_index_string(zval *arg, const char *str) /* {{{ */ in add_next_index_string() argument
1955 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_string()
1959 ZEND_API zend_result add_next_index_stringl(zval *arg, const char *str, size_t length) /* {{{ */ in add_next_index_stringl() argument
1964 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_stringl()
1968 ZEND_API zend_result add_next_index_array(zval *arg, zend_array *arr) /* {{{ */ in add_next_index_array() argument
1973 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_array()
1977 ZEND_API zend_result add_next_index_object(zval *arg, zend_object *obj) /* {{{ */ in add_next_index_object() argument
1982 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_object()
1986 ZEND_API zend_result add_next_index_reference(zval *arg, zend_reference *ref) /* {{{ */ in add_next_index_reference() argument
1991 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_reference()
2036 ZEND_API void add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long n) /* {{{ … in add_property_long_ex() argument
2041 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_long_ex()
2045 ZEND_API void add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b) /* {{{ … in add_property_bool_ex() argument
2050 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_bool_ex()
2054 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len) /* {{{ */ in add_property_null_ex() argument
2059 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_null_ex()
2063 ZEND_API void add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r… in add_property_resource_ex() argument
2068 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_resource_ex()
2073 ZEND_API void add_property_double_ex(zval *arg, const char *key, size_t key_len, double d) /* {{{ */ in add_property_double_ex() argument
2078 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_double_ex()
2082 ZEND_API void add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str) /* … in add_property_str_ex() argument
2087 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_str_ex()
2092 ZEND_API void add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str) /… in add_property_string_ex() argument
2097 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_string_ex()
2102 ZEND_API void add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, … in add_property_stringl_ex() argument
2107 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_stringl_ex()
2112 ZEND_API void add_property_array_ex(zval *arg, const char *key, size_t key_len, zend_array *arr) /*… in add_property_array_ex() argument
2117 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_array_ex()
2122 ZEND_API void add_property_object_ex(zval *arg, const char *key, size_t key_len, zend_object *obj) … in add_property_object_ex() argument
2127 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_object_ex()
2132 ZEND_API void add_property_reference_ex(zval *arg, const char *key, size_t key_len, zend_reference … in add_property_reference_ex() argument
2137 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_reference_ex()
2142 ZEND_API void add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) /* {{{ … in add_property_zval_ex() argument
2147 Z_OBJ_HANDLER_P(arg, write_property)(Z_OBJ_P(arg), str, value, NULL); in add_property_zval_ex() local
2935 static int clean_module_class(zval *el, void *arg) /* {{{ */ in clean_module_class() argument
2938 int module_number = *(int *)arg; in clean_module_class()
3972 zval *arg, *params; in zend_fcall_info_args_ex() local
3988 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(args), arg) { in zend_fcall_info_args_ex()
3989 if (func && !Z_ISREF_P(arg) && ARG_SHOULD_BE_SENT_BY_REF(func, n)) { in zend_fcall_info_args_ex()
3990 ZVAL_NEW_REF(params, arg); in zend_fcall_info_args_ex()
3991 Z_TRY_ADDREF_P(arg); in zend_fcall_info_args_ex()
3993 ZVAL_COPY(params, arg); in zend_fcall_info_args_ex()
4029 zval *arg; in zend_fcall_info_argv() local
4034 arg = va_arg(*argv, zval *); in zend_fcall_info_argv()
4035 ZVAL_COPY(&fci->params[i], arg); in zend_fcall_info_argv()