Lines Matching refs:arg

271 ZEND_API char *zend_zval_type_name(const zval *arg);
276 ZEND_API int zend_parse_parameter(int flags, int arg_num, zval *arg, const char *spec, ...);
380 #define array_init(arg) _array_init((arg), 0 ZEND_FILE_LINE_CC) argument
381 #define array_init_size(arg, size) _array_init((arg), (size) ZEND_FILE_LINE_CC) argument
382 #define object_init(arg) _object_init((arg) ZEND_FILE_LINE_CC) argument
383 #define object_init_ex(arg, ce) _object_init_ex((arg), (ce) ZEND_FILE_LINE_CC) argument
384 #define object_and_properties_init(arg, ce, properties) _object_and_properties_init((arg), (ce), (p… argument
385 ZEND_API int _array_init(zval *arg, uint32_t size ZEND_FILE_LINE_DC);
386 ZEND_API int _object_init(zval *arg ZEND_FILE_LINE_DC);
387 ZEND_API int _object_init_ex(zval *arg, zend_class_entry *ce ZEND_FILE_LINE_DC);
388 ZEND_API int _object_and_properties_init(zval *arg, zend_class_entry *ce, HashTable *properties ZEN…
395 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
396 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
397 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b);
398 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
399 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
400 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
401 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str);
402 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t len…
403 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
421 ZEND_API int add_index_long(zval *arg, zend_ulong idx, zend_long n);
422 ZEND_API int add_index_null(zval *arg, zend_ulong idx);
423 ZEND_API int add_index_bool(zval *arg, zend_ulong idx, int b);
424 ZEND_API int add_index_resource(zval *arg, zend_ulong idx, zend_resource *r);
425 ZEND_API int add_index_double(zval *arg, zend_ulong idx, double d);
426 ZEND_API int add_index_str(zval *arg, zend_ulong idx, zend_string *str);
427 ZEND_API int add_index_string(zval *arg, zend_ulong idx, const char *str);
428 ZEND_API int add_index_stringl(zval *arg, zend_ulong idx, const char *str, size_t length);
429 ZEND_API int add_index_zval(zval *arg, zend_ulong index, zval *value);
431 ZEND_API int add_next_index_long(zval *arg, zend_long n);
432 ZEND_API int add_next_index_null(zval *arg);
433 ZEND_API int add_next_index_bool(zval *arg, int b);
434 ZEND_API int add_next_index_resource(zval *arg, zend_resource *r);
435 ZEND_API int add_next_index_double(zval *arg, double d);
436 ZEND_API int add_next_index_str(zval *arg, zend_string *str);
437 ZEND_API int add_next_index_string(zval *arg, const char *str);
438 ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
439 ZEND_API int add_next_index_zval(zval *arg, zval *value);
441 ZEND_API zval *add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str);
442 ZEND_API zval *add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, …
447 ZEND_API zval *add_get_index_long(zval *arg, zend_ulong idx, zend_long l);
448 ZEND_API zval *add_get_index_double(zval *arg, zend_ulong idx, double d);
449 ZEND_API zval *add_get_index_str(zval *arg, zend_ulong index, zend_string *str);
450 ZEND_API zval *add_get_index_string(zval *arg, zend_ulong idx, const char *str);
451 ZEND_API zval *add_get_index_stringl(zval *arg, zend_ulong idx, const char *str, size_t length);
455 ZEND_API int add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
456 ZEND_API int add_property_null_ex(zval *arg, const char *key, size_t key_len);
457 ZEND_API int add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
458 ZEND_API int add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
459 ZEND_API int add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
460 ZEND_API int add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
461 ZEND_API int add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
462 ZEND_API int add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, …
463 ZEND_API int add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
560 #define add_method(arg, key, method) add_assoc_function((arg), (key), (method)) argument
705 …END_FASTCALL zend_wrong_parameter_type_error(int num, zend_expected_type expected_type, zval *arg);
706 …_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_error(int num, char *name, zval *arg);
1051 ZEND_API int ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pce, int num, int che…
1052 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1053 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1054 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1055 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1056 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_slow(zval *arg, zend_long *dest);
1057 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_weak(zval *arg, zend_long *dest);
1058 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1059 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1060 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1061 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1063 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
1068 if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_bool()
1070 } else if (EXPECTED(Z_TYPE_P(arg) == IS_FALSE)) { in zend_parse_arg_bool()
1072 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_bool()
1076 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1081 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
1086 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_long()
1087 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1088 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_long()
1092 return zend_parse_arg_long_cap_slow(arg, dest); in zend_parse_arg_long()
1094 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1099 static zend_always_inline int zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, in… in zend_parse_arg_double() argument
1104 if (EXPECTED(Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_double()
1105 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1106 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_double()
1110 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1115 static zend_always_inline int zend_parse_arg_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_str() argument
1117 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_str()
1118 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1119 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_str()
1122 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1127 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
1131 if (!zend_parse_arg_str(arg, &str, check_null)) { in zend_parse_arg_string()
1144 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
1146 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1153 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
1157 if (!zend_parse_arg_path_str(arg, &str, check_null)) { in zend_parse_arg_path()
1170 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
1172 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY) || in zend_parse_arg_array()
1173 (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT))) { in zend_parse_arg_array()
1174 *dest = arg; in zend_parse_arg_array()
1175 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array()
1183 static zend_always_inline int zend_parse_arg_array_ht(zval *arg, HashTable **dest, int check_null, … in zend_parse_arg_array_ht() argument
1185 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht()
1186 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
1187 } else if (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_array_ht()
1189 && Z_OBJ_P(arg)->properties in zend_parse_arg_array_ht()
1190 && UNEXPECTED(GC_REFCOUNT(Z_OBJ_P(arg)->properties) > 1)) { in zend_parse_arg_array_ht()
1191 if (EXPECTED(!(GC_FLAGS(Z_OBJ_P(arg)->properties) & IS_ARRAY_IMMUTABLE))) { in zend_parse_arg_array_ht()
1192 GC_REFCOUNT(Z_OBJ_P(arg)->properties)--; in zend_parse_arg_array_ht()
1194 Z_OBJ_P(arg)->properties = zend_array_dup(Z_OBJ_P(arg)->properties); in zend_parse_arg_array_ht()
1196 *dest = Z_OBJ_HT_P(arg)->get_properties(arg); in zend_parse_arg_array_ht()
1197 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht()
1205 static zend_always_inline int zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, i… in zend_parse_arg_object() argument
1207 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && in zend_parse_arg_object()
1208 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_object()
1209 *dest = arg; in zend_parse_arg_object()
1210 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_object()
1218 static zend_always_inline int zend_parse_arg_resource(zval *arg, zval **dest, int check_null) in zend_parse_arg_resource() argument
1220 if (EXPECTED(Z_TYPE_P(arg) == IS_RESOURCE)) { in zend_parse_arg_resource()
1221 *dest = arg; in zend_parse_arg_resource()
1222 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_resource()
1230 static zend_always_inline int zend_parse_arg_func(zval *arg, zend_fcall_info *dest_fci, zend_fcall_… in zend_parse_arg_func() argument
1232 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func()
1236 } else if (UNEXPECTED(zend_fcall_info_init(arg, 0, dest_fci, dest_fcc, NULL, error) != SUCCESS)) { in zend_parse_arg_func()
1242 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval() argument
1245 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval()
1246 (UNEXPECTED(Z_ISREF_P(arg)) && in zend_parse_arg_zval()
1247 UNEXPECTED(Z_TYPE_P(Z_REFVAL_P(arg)) == IS_NULL)))) ? NULL : arg; in zend_parse_arg_zval()
1250 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval_deref() argument
1252 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()