Lines Matching refs:arg

269 ZEND_API char *zend_zval_type_name(const zval *arg);
274 ZEND_API int zend_parse_parameter(int flags, int arg_num, zval *arg, const char *spec, ...);
376 #define array_init(arg) _array_init((arg), 0 ZEND_FILE_LINE_CC) argument
377 #define array_init_size(arg, size) _array_init((arg), (size) ZEND_FILE_LINE_CC) argument
378 #define object_init(arg) _object_init((arg) ZEND_FILE_LINE_CC) argument
379 #define object_init_ex(arg, ce) _object_init_ex((arg), (ce) ZEND_FILE_LINE_CC) argument
380 #define object_and_properties_init(arg, ce, properties) _object_and_properties_init((arg), (ce), (p… argument
381 ZEND_API int _array_init(zval *arg, uint32_t size ZEND_FILE_LINE_DC);
382 ZEND_API int _object_init(zval *arg ZEND_FILE_LINE_DC);
383 ZEND_API int _object_init_ex(zval *arg, zend_class_entry *ce ZEND_FILE_LINE_DC);
384 ZEND_API int _object_and_properties_init(zval *arg, zend_class_entry *ce, HashTable *properties ZEN…
391 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
392 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
393 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b);
394 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
395 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
396 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
397 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str);
398 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t len…
399 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
417 ZEND_API int add_index_long(zval *arg, zend_ulong idx, zend_long n);
418 ZEND_API int add_index_null(zval *arg, zend_ulong idx);
419 ZEND_API int add_index_bool(zval *arg, zend_ulong idx, int b);
420 ZEND_API int add_index_resource(zval *arg, zend_ulong idx, zend_resource *r);
421 ZEND_API int add_index_double(zval *arg, zend_ulong idx, double d);
422 ZEND_API int add_index_str(zval *arg, zend_ulong idx, zend_string *str);
423 ZEND_API int add_index_string(zval *arg, zend_ulong idx, const char *str);
424 ZEND_API int add_index_stringl(zval *arg, zend_ulong idx, const char *str, size_t length);
425 ZEND_API int add_index_zval(zval *arg, zend_ulong index, zval *value);
427 ZEND_API int add_next_index_long(zval *arg, zend_long n);
428 ZEND_API int add_next_index_null(zval *arg);
429 ZEND_API int add_next_index_bool(zval *arg, int b);
430 ZEND_API int add_next_index_resource(zval *arg, zend_resource *r);
431 ZEND_API int add_next_index_double(zval *arg, double d);
432 ZEND_API int add_next_index_str(zval *arg, zend_string *str);
433 ZEND_API int add_next_index_string(zval *arg, const char *str);
434 ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
435 ZEND_API int add_next_index_zval(zval *arg, zval *value);
437 ZEND_API zval *add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str);
438 ZEND_API zval *add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, …
443 ZEND_API zval *add_get_index_long(zval *arg, zend_ulong idx, zend_long l);
444 ZEND_API zval *add_get_index_double(zval *arg, zend_ulong idx, double d);
445 ZEND_API zval *add_get_index_str(zval *arg, zend_ulong index, zend_string *str);
446 ZEND_API zval *add_get_index_string(zval *arg, zend_ulong idx, const char *str);
447 ZEND_API zval *add_get_index_stringl(zval *arg, zend_ulong idx, const char *str, size_t length);
451 ZEND_API int add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
452 ZEND_API int add_property_null_ex(zval *arg, const char *key, size_t key_len);
453 ZEND_API int add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
454 ZEND_API int add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
455 ZEND_API int add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
456 ZEND_API int add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
457 ZEND_API int add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
458 ZEND_API int add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, …
459 ZEND_API int add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
549 #define add_method(arg, key, method) add_assoc_function((arg), (key), (method)) argument
694 … ZEND_FASTCALL zend_wrong_paramer_type_error(int num, zend_expected_type expected_type, zval *arg);
695 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_paramer_class_error(int num, char *name, zval *arg
1040 ZEND_API int ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pce, int num, int che…
1041 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1042 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1043 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1044 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1045 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_slow(zval *arg, zend_long *dest);
1046 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_weak(zval *arg, zend_long *dest);
1047 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1048 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1049 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1050 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1052 static zend_always_inline int zend_parse_arg_bool(zval *arg, zend_bool *dest, zend_bool *is_null, i… in zend_parse_arg_bool() argument
1057 if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_bool()
1059 } else if (EXPECTED(Z_TYPE_P(arg) == IS_FALSE)) { in zend_parse_arg_bool()
1061 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_bool()
1065 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1070 static zend_always_inline int zend_parse_arg_long(zval *arg, zend_long *dest, zend_bool *is_null, i… in zend_parse_arg_long() argument
1075 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_long()
1076 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1077 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_long()
1081 return zend_parse_arg_long_cap_slow(arg, dest); in zend_parse_arg_long()
1083 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1088 static zend_always_inline int zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, in… in zend_parse_arg_double() argument
1093 if (EXPECTED(Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_double()
1094 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1095 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_double()
1099 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1104 static zend_always_inline int zend_parse_arg_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_str() argument
1106 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_str()
1107 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1108 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_str()
1111 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1116 static zend_always_inline int zend_parse_arg_string(zval *arg, char **dest, size_t *dest_len, int c… in zend_parse_arg_string() argument
1120 if (!zend_parse_arg_str(arg, &str, check_null)) { in zend_parse_arg_string()
1133 static zend_always_inline int zend_parse_arg_path_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_path_str() argument
1135 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1142 static zend_always_inline int zend_parse_arg_path(zval *arg, char **dest, size_t *dest_len, int che… in zend_parse_arg_path() argument
1146 if (!zend_parse_arg_path_str(arg, &str, check_null)) { in zend_parse_arg_path()
1159 static zend_always_inline int zend_parse_arg_array(zval *arg, zval **dest, int check_null, int or_o… in zend_parse_arg_array() argument
1161 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY) || in zend_parse_arg_array()
1162 (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT))) { in zend_parse_arg_array()
1163 *dest = arg; in zend_parse_arg_array()
1164 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array()
1172 static zend_always_inline int zend_parse_arg_array_ht(zval *arg, HashTable **dest, int check_null, … in zend_parse_arg_array_ht() argument
1174 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht()
1175 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
1176 } else if (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_array_ht()
1177 *dest = Z_OBJ_HT_P(arg)->get_properties(arg); in zend_parse_arg_array_ht()
1178 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht()
1186 static zend_always_inline int zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, i… in zend_parse_arg_object() argument
1188 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && in zend_parse_arg_object()
1189 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_object()
1190 *dest = arg; in zend_parse_arg_object()
1191 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_object()
1199 static zend_always_inline int zend_parse_arg_resource(zval *arg, zval **dest, int check_null) in zend_parse_arg_resource() argument
1201 if (EXPECTED(Z_TYPE_P(arg) == IS_RESOURCE)) { in zend_parse_arg_resource()
1202 *dest = arg; in zend_parse_arg_resource()
1203 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_resource()
1211 static zend_always_inline int zend_parse_arg_func(zval *arg, zend_fcall_info *dest_fci, zend_fcall_… in zend_parse_arg_func() argument
1213 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func()
1217 } else if (UNEXPECTED(zend_fcall_info_init(arg, 0, dest_fci, dest_fcc, NULL, error) != SUCCESS)) { in zend_parse_arg_func()
1223 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval() argument
1226 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval()
1227 (UNEXPECTED(Z_ISREF_P(arg)) && in zend_parse_arg_zval()
1228 UNEXPECTED(Z_TYPE_P(Z_REFVAL_P(arg)) == IS_NULL)))) ? NULL : arg; in zend_parse_arg_zval()
1231 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval_deref() argument
1233 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()