Lines Matching refs:arg
263 ZEND_API char *zend_zval_type_name(const zval *arg);
264 ZEND_API zend_string *zend_zval_get_type(const zval *arg);
269 ZEND_API int zend_parse_parameter(int flags, int arg_num, zval *arg, const char *spec, ...);
377 #define array_init(arg) ZVAL_ARR((arg), zend_new_array(0)) argument
378 #define array_init_size(arg, size) ZVAL_ARR((arg), zend_new_array(size)) argument
379 ZEND_API int object_init(zval *arg);
380 ZEND_API int object_init_ex(zval *arg, zend_class_entry *ce);
381 ZEND_API int object_and_properties_init(zval *arg, zend_class_entry *ce, HashTable *properties);
388 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
389 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
390 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b);
391 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
392 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
393 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
394 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
395 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size…
396 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
414 ZEND_API int add_index_long(zval *arg, zend_ulong idx, zend_long n);
415 ZEND_API int add_index_null(zval *arg, zend_ulong idx);
416 ZEND_API int add_index_bool(zval *arg, zend_ulong idx, int b);
417 ZEND_API int add_index_resource(zval *arg, zend_ulong idx, zend_resource *r);
418 ZEND_API int add_index_double(zval *arg, zend_ulong idx, double d);
419 ZEND_API int add_index_str(zval *arg, zend_ulong idx, zend_string *str);
420 ZEND_API int add_index_string(zval *arg, zend_ulong idx, const char *str);
421 ZEND_API int add_index_stringl(zval *arg, zend_ulong idx, const char *str, size_t length);
422 ZEND_API int add_index_zval(zval *arg, zend_ulong index, zval *value);
424 ZEND_API int add_next_index_long(zval *arg, zend_long n);
425 ZEND_API int add_next_index_null(zval *arg);
426 ZEND_API int add_next_index_bool(zval *arg, int b);
427 ZEND_API int add_next_index_resource(zval *arg, zend_resource *r);
428 ZEND_API int add_next_index_double(zval *arg, double d);
429 ZEND_API int add_next_index_str(zval *arg, zend_string *str);
430 ZEND_API int add_next_index_string(zval *arg, const char *str);
431 ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
432 ZEND_API int add_next_index_zval(zval *arg, zval *value);
434 ZEND_API zval *add_get_assoc_string_ex(zval *arg, const char *key, uint32_t key_len, const char *st…
435 ZEND_API zval *add_get_assoc_stringl_ex(zval *arg, const char *key, uint32_t key_len, const char *s…
440 ZEND_API zval *add_get_index_long(zval *arg, zend_ulong idx, zend_long l);
441 ZEND_API zval *add_get_index_double(zval *arg, zend_ulong idx, double d);
442 ZEND_API zval *add_get_index_str(zval *arg, zend_ulong index, zend_string *str);
443 ZEND_API zval *add_get_index_string(zval *arg, zend_ulong idx, const char *str);
444 ZEND_API zval *add_get_index_stringl(zval *arg, zend_ulong idx, const char *str, size_t length);
448 ZEND_API int add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
449 ZEND_API int add_property_null_ex(zval *arg, const char *key, size_t key_len);
450 ZEND_API int add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
451 ZEND_API int add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
452 ZEND_API int add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
453 ZEND_API int add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
454 ZEND_API int add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
455 ZEND_API int add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, …
456 ZEND_API int add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
555 #define add_method(arg, key, method) add_assoc_function((arg), (key), (method)) argument
703 …END_FASTCALL zend_wrong_parameter_type_error(int num, zend_expected_type expected_type, zval *arg);
704 …FASTCALL zend_wrong_parameter_type_exception(int num, zend_expected_type expected_type, zval *arg);
705 …_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_error(int num, char *name, zval *arg);
706 … ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_exception(int num, char *name, zval *arg);
1123 ZEND_API int ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pce, int num, int che…
1124 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1125 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1126 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1127 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1128 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_slow(zval *arg, zend_long *dest);
1129 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_weak(zval *arg, zend_long *dest);
1130 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1131 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1132 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1133 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1135 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
1140 if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_bool()
1142 } else if (EXPECTED(Z_TYPE_P(arg) == IS_FALSE)) { in zend_parse_arg_bool()
1144 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_bool()
1148 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1153 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
1158 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_long()
1159 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1160 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_long()
1164 return zend_parse_arg_long_cap_slow(arg, dest); in zend_parse_arg_long()
1166 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1171 static zend_always_inline int zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, in… in zend_parse_arg_double() argument
1176 if (EXPECTED(Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_double()
1177 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1178 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_double()
1182 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1187 static zend_always_inline int zend_parse_arg_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_str() argument
1189 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_str()
1190 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1191 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_str()
1194 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1199 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
1203 if (!zend_parse_arg_str(arg, &str, check_null)) { in zend_parse_arg_string()
1216 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
1218 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1225 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
1229 if (!zend_parse_arg_path_str(arg, &str, check_null)) { in zend_parse_arg_path()
1242 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
1244 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY) || in zend_parse_arg_array()
1245 (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT))) { in zend_parse_arg_array()
1246 *dest = arg; in zend_parse_arg_array()
1247 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array()
1255 static zend_always_inline int zend_parse_arg_array_ht(zval *arg, HashTable **dest, int check_null, … in zend_parse_arg_array_ht() argument
1257 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht()
1258 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
1259 } else if (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_array_ht()
1261 && Z_OBJ_P(arg)->properties in zend_parse_arg_array_ht()
1262 && UNEXPECTED(GC_REFCOUNT(Z_OBJ_P(arg)->properties) > 1)) { in zend_parse_arg_array_ht()
1263 if (EXPECTED(!(GC_FLAGS(Z_OBJ_P(arg)->properties) & IS_ARRAY_IMMUTABLE))) { in zend_parse_arg_array_ht()
1264 GC_DELREF(Z_OBJ_P(arg)->properties); in zend_parse_arg_array_ht()
1266 Z_OBJ_P(arg)->properties = zend_array_dup(Z_OBJ_P(arg)->properties); in zend_parse_arg_array_ht()
1268 *dest = Z_OBJ_HT_P(arg)->get_properties(arg); in zend_parse_arg_array_ht()
1269 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht()
1277 static zend_always_inline int zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, i… in zend_parse_arg_object() argument
1279 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && in zend_parse_arg_object()
1280 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_object()
1281 *dest = arg; in zend_parse_arg_object()
1282 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_object()
1290 static zend_always_inline int zend_parse_arg_resource(zval *arg, zval **dest, int check_null) in zend_parse_arg_resource() argument
1292 if (EXPECTED(Z_TYPE_P(arg) == IS_RESOURCE)) { in zend_parse_arg_resource()
1293 *dest = arg; in zend_parse_arg_resource()
1294 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_resource()
1302 static zend_always_inline int zend_parse_arg_func(zval *arg, zend_fcall_info *dest_fci, zend_fcall_… in zend_parse_arg_func() argument
1304 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func()
1308 } else if (UNEXPECTED(zend_fcall_info_init(arg, 0, dest_fci, dest_fcc, NULL, error) != SUCCESS)) { in zend_parse_arg_func()
1314 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval() argument
1317 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval()
1318 (UNEXPECTED(Z_ISREF_P(arg)) && in zend_parse_arg_zval()
1319 UNEXPECTED(Z_TYPE_P(Z_REFVAL_P(arg)) == IS_NULL)))) ? NULL : arg; in zend_parse_arg_zval()
1322 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval_deref() argument
1324 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()