Lines Matching refs:arg
147 ZEND_API const char *zend_zval_value_name(const zval *arg) in zend_zval_value_name() argument
149 ZVAL_DEREF(arg); in zend_zval_value_name()
151 if (Z_ISUNDEF_P(arg)) { in zend_zval_value_name()
155 if (Z_TYPE_P(arg) == IS_OBJECT) { in zend_zval_value_name()
156 return ZSTR_VAL(Z_OBJCE_P(arg)->name); in zend_zval_value_name()
157 } else if (Z_TYPE_P(arg) == IS_FALSE) { in zend_zval_value_name()
159 } else if (Z_TYPE_P(arg) == IS_TRUE) { in zend_zval_value_name()
163 return zend_get_type_by_const(Z_TYPE_P(arg)); in zend_zval_value_name()
166 ZEND_API const char *zend_zval_type_name(const zval *arg) in zend_zval_type_name() argument
168 ZVAL_DEREF(arg); in zend_zval_type_name()
170 if (Z_ISUNDEF_P(arg)) { in zend_zval_type_name()
174 if (Z_TYPE_P(arg) == IS_OBJECT) { in zend_zval_type_name()
175 return ZSTR_VAL(Z_OBJCE_P(arg)->name); in zend_zval_type_name()
178 return zend_get_type_by_const(Z_TYPE_P(arg)); in zend_zval_type_name()
183 ZEND_API zend_string *zend_zval_get_legacy_type(const zval *arg) /* {{{ */ in zend_zval_get_legacy_type() argument
185 switch (Z_TYPE_P(arg)) { in zend_zval_get_legacy_type()
202 if (zend_rsrc_list_get_rsrc_type(Z_RES_P(arg))) { in zend_zval_get_legacy_type()
242 …or(int error_code, uint32_t num, char *name, zend_expected_type expected_type, zval *arg) /* {{{ */ in zend_wrong_parameter_error() argument
252 zend_wrong_parameter_class_error(num, name, arg); in zend_wrong_parameter_error()
255 zend_wrong_parameter_class_or_null_error(num, name, arg); in zend_wrong_parameter_error()
258 zend_wrong_parameter_class_or_string_error(num, name, arg); in zend_wrong_parameter_error()
261 zend_wrong_parameter_class_or_string_or_null_error(num, name, arg); in zend_wrong_parameter_error()
264 zend_wrong_parameter_class_or_long_error(num, name, arg); in zend_wrong_parameter_error()
267 zend_wrong_parameter_class_or_long_or_null_error(num, name, arg); in zend_wrong_parameter_error()
270 zend_wrong_parameter_type_error(num, expected_type, arg); in zend_wrong_parameter_error()
283 …end_wrong_parameter_type_error(uint32_t num, zend_expected_type expected_type, zval *arg) /* {{{ */ in zend_wrong_parameter_type_error() argument
295 && Z_TYPE_P(arg) == IS_STRING) { in zend_wrong_parameter_type_error()
300 …_type_error(num, "must be %s, %s given", expected_error[expected_type], zend_zval_value_name(arg)); in zend_wrong_parameter_type_error()
304 …ZEND_FASTCALL zend_wrong_parameter_class_error(uint32_t num, const char *name, zval *arg) /* {{{ */ in zend_wrong_parameter_class_error() argument
310 zend_argument_type_error(num, "must be of type %s, %s given", name, zend_zval_value_name(arg)); in zend_wrong_parameter_class_error()
314 …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
320 zend_argument_type_error(num, "must be of type ?%s, %s given", name, zend_zval_value_name(arg)); in zend_wrong_parameter_class_or_null_error()
324 …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
330 zend_argument_type_error(num, "must be of type %s|int, %s given", name, zend_zval_value_name(arg)); in zend_wrong_parameter_class_or_long_error()
334 …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
340 …argument_type_error(num, "must be of type %s|int|null, %s given", name, zend_zval_value_name(arg)); in zend_wrong_parameter_class_or_long_or_null_error()
344 …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
350 …d_argument_type_error(num, "must be of type %s|string, %s given", name, zend_zval_value_name(arg)); in zend_wrong_parameter_class_or_string_error()
354 …_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
360 …ument_type_error(num, "must be of type %s|string|null, %s given", name, zend_zval_value_name(arg)); in zend_wrong_parameter_class_or_string_or_null_error()
467 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
471 if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_class()
475 if (!try_convert_to_string(arg)) { in zend_parse_arg_class()
480 *pce = zend_lookup_class(Z_STR_P(arg)); in zend_parse_arg_class()
483 …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()
489 zend_argument_type_error(num, "must be a valid class name, %s given", Z_STRVAL_P(arg)); in zend_parse_arg_class()
525 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak(const zval *arg, bool *dest, uint32_t arg_num)… in zend_parse_arg_bool_weak() argument
527 if (EXPECTED(Z_TYPE_P(arg) <= IS_STRING)) { in zend_parse_arg_bool_weak()
528 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("bool", arg_num)) { in zend_parse_arg_bool_weak()
531 *dest = zend_is_true(arg); in zend_parse_arg_bool_weak()
539 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow(const zval *arg, bool *dest, uint32_t arg_num)… in zend_parse_arg_bool_slow() argument
544 return zend_parse_arg_bool_weak(arg, dest, arg_num); in zend_parse_arg_bool_slow()
548 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_bool_slow(const zval *arg, bool *dest, uint32_t arg_… in zend_flf_parse_arg_bool_slow() argument
553 return zend_parse_arg_bool_weak(arg, dest, arg_num); in zend_flf_parse_arg_bool_slow()
556 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak(const zval *arg, zend_long *dest, uint32_t arg… in zend_parse_arg_long_weak() argument
558 if (EXPECTED(Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_long_weak()
559 if (UNEXPECTED(zend_isnan(Z_DVAL_P(arg)))) { in zend_parse_arg_long_weak()
562 if (UNEXPECTED(!ZEND_DOUBLE_FITS_LONG(Z_DVAL_P(arg)))) { in zend_parse_arg_long_weak()
565 zend_long lval = zend_dval_to_lval(Z_DVAL_P(arg)); in zend_parse_arg_long_weak()
566 if (UNEXPECTED(!zend_is_long_compatible(Z_DVAL_P(arg), lval))) { in zend_parse_arg_long_weak()
570 zend_incompatible_double_to_long_error(Z_DVAL_P(arg)); in zend_parse_arg_long_weak()
578 } else if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_long_weak()
582 if (UNEXPECTED((type = is_numeric_str_function(Z_STR_P(arg), dest, &d)) != IS_LONG)) { in zend_parse_arg_long_weak()
598 zend_incompatible_string_to_long_error(Z_STR_P(arg)); in zend_parse_arg_long_weak()
612 } else if (EXPECTED(Z_TYPE_P(arg) < IS_TRUE)) { in zend_parse_arg_long_weak()
613 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("int", arg_num)) { in zend_parse_arg_long_weak()
617 } else if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_long_weak()
626 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow(const zval *arg, zend_long *dest, uint32_t arg… in zend_parse_arg_long_slow() argument
631 return zend_parse_arg_long_weak(arg, dest, arg_num); in zend_parse_arg_long_slow()
635 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_long_slow(const zval *arg, zend_long *dest, uint32_t… in zend_flf_parse_arg_long_slow() argument
640 return zend_parse_arg_long_weak(arg, dest, arg_num); in zend_flf_parse_arg_long_slow()
643 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak(const zval *arg, double *dest, uint32_t arg_… in zend_parse_arg_double_weak() argument
645 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_double_weak()
646 *dest = (double)Z_LVAL_P(arg); in zend_parse_arg_double_weak()
647 } else if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_double_weak()
651 if (UNEXPECTED((type = is_numeric_str_function(Z_STR_P(arg), &l, dest)) != IS_DOUBLE)) { in zend_parse_arg_double_weak()
661 } else if (EXPECTED(Z_TYPE_P(arg) < IS_TRUE)) { in zend_parse_arg_double_weak()
662 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("float", arg_num)) { in zend_parse_arg_double_weak()
666 } else if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_double_weak()
675 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow(const zval *arg, double *dest, uint32_t arg_… in zend_parse_arg_double_slow() argument
677 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_double_slow()
679 *dest = (double)Z_LVAL_P(arg); in zend_parse_arg_double_slow()
683 return zend_parse_arg_double_weak(arg, dest, arg_num); in zend_parse_arg_double_slow()
687 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
692 if (Z_TYPE_P(arg) == IS_STRING) { in zend_parse_arg_number_slow()
693 zend_string *str = Z_STR_P(arg); in zend_parse_arg_number_slow()
698 ZVAL_LONG(arg, lval); in zend_parse_arg_number_slow()
700 ZVAL_DOUBLE(arg, dval); in zend_parse_arg_number_slow()
705 } else if (Z_TYPE_P(arg) < IS_TRUE) { in zend_parse_arg_number_slow()
706 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("int|float", arg_num)) { in zend_parse_arg_number_slow()
709 ZVAL_LONG(arg, 0); in zend_parse_arg_number_slow()
710 } else if (Z_TYPE_P(arg) == IS_TRUE) { in zend_parse_arg_number_slow()
711 ZVAL_LONG(arg, 1); in zend_parse_arg_number_slow()
715 *dest = arg; in zend_parse_arg_number_slow()
721 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_or_str_slow(zval *arg, zval **dest, uint32_t arg_… in zend_parse_arg_number_or_str_slow() argument
726 if (Z_TYPE_P(arg) < IS_TRUE) { in zend_parse_arg_number_or_str_slow()
727 …if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("string|int|float", arg_num)… in zend_parse_arg_number_or_str_slow()
730 ZVAL_LONG(arg, 0); in zend_parse_arg_number_or_str_slow()
731 } else if (Z_TYPE_P(arg) == IS_TRUE) { in zend_parse_arg_number_or_str_slow()
732 ZVAL_LONG(arg, 1); in zend_parse_arg_number_or_str_slow()
733 } else if (UNEXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_number_or_str_slow()
734 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_number_or_str_slow()
738 ZVAL_COPY_VALUE(arg, &obj); in zend_parse_arg_number_or_str_slow()
739 *dest = arg; in zend_parse_arg_number_or_str_slow()
746 *dest = arg; in zend_parse_arg_number_or_str_slow()
750 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
752 if (EXPECTED(Z_TYPE_P(arg) < IS_STRING)) { in zend_parse_arg_str_weak()
753 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("string", arg_num)) { in zend_parse_arg_str_weak()
756 convert_to_string(arg); in zend_parse_arg_str_weak()
757 *dest = Z_STR_P(arg); in zend_parse_arg_str_weak()
758 } else if (UNEXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_str_weak()
759 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_str_weak()
763 ZVAL_COPY_VALUE(arg, &obj); in zend_parse_arg_str_weak()
764 *dest = Z_STR_P(arg); in zend_parse_arg_str_weak()
775 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
780 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_parse_arg_str_slow()
784 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_str_slow(zval *arg, zend_string **dest, uint32_t arg… in zend_flf_parse_arg_str_slow() argument
789 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_flf_parse_arg_str_slow()
792 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
797 if (zend_parse_arg_long_weak(arg, dest_long, arg_num)) { in zend_parse_arg_str_or_long_slow()
800 } else if (zend_parse_arg_str_weak(arg, dest_str, arg_num)) { in zend_parse_arg_str_or_long_slow()
809 static const char *zend_parse_arg_impl(zval *arg, va_list *va, const char **spec, char **error, uin… in zend_parse_arg_impl() argument
815 zval *real_arg = arg; in zend_parse_arg_impl()
818 ZVAL_DEREF(arg); in zend_parse_arg_impl()
821 SEPARATE_ZVAL_NOREF(arg); in zend_parse_arg_impl()
822 real_arg = arg; in zend_parse_arg_impl()
842 if (!zend_parse_arg_long(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
857 if (!zend_parse_arg_double(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
867 if (!zend_parse_arg_number(arg, p, check_null, arg_num)) { in zend_parse_arg_impl()
877 if (!zend_parse_arg_string(arg, p, pl, check_null, arg_num)) { in zend_parse_arg_impl()
887 if (!zend_parse_arg_path(arg, p, pl, check_null, arg_num)) { in zend_parse_arg_impl()
888 if (Z_TYPE_P(arg) == IS_STRING) { in zend_parse_arg_impl()
901 if (!zend_parse_arg_path_str(arg, str, check_null, arg_num)) { in zend_parse_arg_impl()
902 if (Z_TYPE_P(arg) == IS_STRING) { in zend_parse_arg_impl()
915 if (!zend_parse_arg_str(arg, str, check_null, arg_num)) { in zend_parse_arg_impl()
930 if (!zend_parse_arg_bool(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
940 if (!zend_parse_arg_resource(arg, p, check_null)) { in zend_parse_arg_impl()
951 if (!zend_parse_arg_array(arg, p, check_null, c == 'A')) { in zend_parse_arg_impl()
962 if (!zend_parse_arg_array_ht(arg, p, check_null, c == 'H', separate)) { in zend_parse_arg_impl()
972 if (!zend_parse_arg_object(arg, p, NULL, check_null)) { in zend_parse_arg_impl()
983 if (!zend_parse_arg_object(arg, p, ce, check_null)) { in zend_parse_arg_impl()
986 …spprintf(error, 0, "must be of type ?%s, %s given", ZSTR_VAL(ce->name), zend_zval_value_name(arg)); in zend_parse_arg_impl()
1003 if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_impl()
1007 if (!try_convert_to_string(arg)) { in zend_parse_arg_impl()
1012 if ((lookup = zend_lookup_class(Z_STR_P(arg))) == NULL) { in zend_parse_arg_impl()
1020 ZSTR_VAL(ce_base->name), check_null ? " or null" : "", Z_STRVAL_P(arg)); in zend_parse_arg_impl()
1027 check_null ? " or null" : "", Z_STRVAL_P(arg)); in zend_parse_arg_impl()
1042 if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_impl()
1048 if (zend_fcall_info_init(arg, 0, fci, fcc, NULL, &is_callable_error) == SUCCESS) { in zend_parse_arg_impl()
1090 static zend_result zend_parse_arg(uint32_t arg_num, zval *arg, va_list *va, const char **spec, int … in zend_parse_arg() argument
1095 expected_type = zend_parse_arg_impl(arg, va, spec, &error, arg_num); in zend_parse_arg()
1109 …ment_type_error(arg_num, "must be of type %s, %s given", expected_type, zend_zval_value_name(arg)); in zend_parse_arg()
1122 ZEND_API zend_result zend_parse_parameter(int flags, uint32_t arg_num, zval *arg, const char *spec,… in zend_parse_parameter() argument
1128 ret = zend_parse_arg(arg_num, arg, &va, &spec, flags); in zend_parse_parameter()
1151 zval *arg; in zend_parse_va_args() local
1270 arg = ZEND_CALL_ARG(EG(current_execute_data), i + 1); in zend_parse_va_args()
1272 if (zend_parse_arg(i+1, arg, va, &type_spec, flags) == FAILURE) { in zend_parse_va_args()
1796 static zend_always_inline zend_result _object_and_properties_init(zval *arg, zend_class_entry *clas… in _object_and_properties_init() argument
1809 ZVAL_NULL(arg); in _object_and_properties_init()
1810 Z_OBJ_P(arg) = NULL; in _object_and_properties_init()
1816 ZVAL_NULL(arg); in _object_and_properties_init()
1817 Z_OBJ_P(arg) = NULL; in _object_and_properties_init()
1825 ZVAL_OBJ(arg, obj); in _object_and_properties_init()
1832 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init()
1838 ZEND_API zend_result object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable … in object_and_properties_init() argument
1840 return _object_and_properties_init(arg, class_type, properties); in object_and_properties_init()
1844 ZEND_API zend_result object_init_ex(zval *arg, zend_class_entry *class_type) /* {{{ */ in object_init_ex() argument
1846 return _object_and_properties_init(arg, class_type, NULL); in object_init_ex()
1850 ZEND_API zend_result object_init_with_constructor(zval *arg, zend_class_entry *class_type, uint32_t… in object_init_with_constructor() argument
1852 zend_result status = _object_and_properties_init(arg, class_type, NULL); in object_init_with_constructor()
1854 ZVAL_UNDEF(arg); in object_init_with_constructor()
1857 zend_object *obj = Z_OBJ_P(arg); in object_init_with_constructor()
1868 zval_ptr_dtor(arg); in object_init_with_constructor()
1869 ZVAL_UNDEF(arg); in object_init_with_constructor()
1884 zval_ptr_dtor(arg); in object_init_with_constructor()
1885 ZVAL_UNDEF(arg); in object_init_with_constructor()
1906 zval_ptr_dtor(arg); in object_init_with_constructor()
1907 ZVAL_UNDEF(arg); in object_init_with_constructor()
1917 ZEND_API void object_init(zval *arg) /* {{{ */ in object_init() argument
1919 ZVAL_OBJ(arg, zend_objects_new(zend_standard_class_def)); in object_init()
1923 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
1928 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_long_ex()
1932 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len) /* {{{ */ in add_assoc_null_ex() argument
1937 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_null_ex()
1941 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b) /* {{{ */ in add_assoc_bool_ex() argument
1946 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_bool_ex()
1950 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
1955 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_resource_ex()
1959 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d) /* {{{ */ in add_assoc_double_ex() argument
1964 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_double_ex()
1968 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
1973 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_str_ex()
1977 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
1982 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_string_ex()
1986 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
1991 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_stringl_ex()
1995 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
2000 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_array_ex()
2004 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
2009 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_object_ex()
2013 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
2018 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_reference_ex()
2022 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) /* {{{ */ in add_assoc_zval_ex() argument
2024 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, value); in add_assoc_zval_ex()
2028 ZEND_API void add_index_long(zval *arg, zend_ulong index, zend_long n) /* {{{ */ in add_index_long() argument
2033 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_long()
2037 ZEND_API void add_index_null(zval *arg, zend_ulong index) /* {{{ */ in add_index_null() argument
2042 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_null()
2046 ZEND_API void add_index_bool(zval *arg, zend_ulong index, bool b) /* {{{ */ in add_index_bool() argument
2051 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_bool()
2055 ZEND_API void add_index_resource(zval *arg, zend_ulong index, zend_resource *r) /* {{{ */ in add_index_resource() argument
2060 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_resource()
2064 ZEND_API void add_index_double(zval *arg, zend_ulong index, double d) /* {{{ */ in add_index_double() argument
2069 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_double()
2073 ZEND_API void add_index_str(zval *arg, zend_ulong index, zend_string *str) /* {{{ */ in add_index_str() argument
2078 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_str()
2082 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str) /* {{{ */ in add_index_string() argument
2087 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_string()
2091 ZEND_API void add_index_stringl(zval *arg, zend_ulong index, const char *str, size_t length) /* {{{… in add_index_stringl() argument
2096 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_stringl()
2100 ZEND_API void add_index_array(zval *arg, zend_ulong index, zend_array *arr) /* {{{ */ in add_index_array() argument
2105 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_array()
2109 ZEND_API void add_index_object(zval *arg, zend_ulong index, zend_object *obj) /* {{{ */ in add_index_object() argument
2114 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_object()
2118 ZEND_API void add_index_reference(zval *arg, zend_ulong index, zend_reference *ref) /* {{{ */ in add_index_reference() argument
2123 zend_hash_index_update(Z_ARRVAL_P(arg), index, &tmp); in add_index_reference()
2127 ZEND_API zend_result add_next_index_long(zval *arg, zend_long n) /* {{{ */ in add_next_index_long() argument
2132 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_long()
2136 ZEND_API zend_result add_next_index_null(zval *arg) /* {{{ */ in add_next_index_null() argument
2141 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_null()
2145 ZEND_API zend_result add_next_index_bool(zval *arg, bool b) /* {{{ */ in add_next_index_bool() argument
2150 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_bool()
2154 ZEND_API zend_result add_next_index_resource(zval *arg, zend_resource *r) /* {{{ */ in add_next_index_resource() argument
2159 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_resource()
2163 ZEND_API zend_result add_next_index_double(zval *arg, double d) /* {{{ */ in add_next_index_double() argument
2168 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_double()
2172 ZEND_API zend_result add_next_index_str(zval *arg, zend_string *str) /* {{{ */ in add_next_index_str() argument
2177 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_str()
2181 ZEND_API zend_result add_next_index_string(zval *arg, const char *str) /* {{{ */ in add_next_index_string() argument
2186 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_string()
2190 ZEND_API zend_result add_next_index_stringl(zval *arg, const char *str, size_t length) /* {{{ */ in add_next_index_stringl() argument
2195 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_stringl()
2199 ZEND_API zend_result add_next_index_array(zval *arg, zend_array *arr) /* {{{ */ in add_next_index_array() argument
2204 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_array()
2208 ZEND_API zend_result add_next_index_object(zval *arg, zend_object *obj) /* {{{ */ in add_next_index_object() argument
2213 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_object()
2217 ZEND_API zend_result add_next_index_reference(zval *arg, zend_reference *ref) /* {{{ */ in add_next_index_reference() argument
2222 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp) ? SUCCESS : FAILURE; in add_next_index_reference()
2267 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
2272 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_long_ex()
2276 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
2281 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_bool_ex()
2285 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len) /* {{{ */ in add_property_null_ex() argument
2290 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_null_ex()
2294 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
2299 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_resource_ex()
2304 ZEND_API void add_property_double_ex(zval *arg, const char *key, size_t key_len, double d) /* {{{ */ in add_property_double_ex() argument
2309 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_double_ex()
2313 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
2318 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_str_ex()
2323 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
2328 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_string_ex()
2333 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
2338 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_stringl_ex()
2343 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
2348 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_array_ex()
2353 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
2358 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_object_ex()
2363 ZEND_API void add_property_reference_ex(zval *arg, const char *key, size_t key_len, zend_reference … in add_property_reference_ex() argument
2368 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_reference_ex()
2373 ZEND_API void add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) /* {{{ … in add_property_zval_ex() argument
2378 Z_OBJ_HANDLER_P(arg, write_property)(Z_OBJ_P(arg), str, value, NULL); in add_property_zval_ex() local
3266 static int clean_module_class(zval *el, void *arg) /* {{{ */ in clean_module_class() argument
3269 int module_number = *(int *)arg; in clean_module_class()
3284 static int clean_module_function(zval *el, void *arg) /* {{{ */ in clean_module_function() argument
3287 zend_module_entry *module = (zend_module_entry *) arg; in clean_module_function()
4365 zval *arg, *params; in zend_fcall_info_args_ex() local
4381 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(args), arg) { in zend_fcall_info_args_ex()
4382 if (func && !Z_ISREF_P(arg) && ARG_SHOULD_BE_SENT_BY_REF(func, n)) { in zend_fcall_info_args_ex()
4383 ZVAL_NEW_REF(params, arg); in zend_fcall_info_args_ex()
4384 Z_TRY_ADDREF_P(arg); in zend_fcall_info_args_ex()
4386 ZVAL_COPY(params, arg); in zend_fcall_info_args_ex()
4422 zval *arg; in zend_fcall_info_argv() local
4427 arg = va_arg(*argv, zval *); in zend_fcall_info_argv()
4428 ZVAL_COPY(&fci->params[i], arg); in zend_fcall_info_argv()