Lines Matching refs:arg
281 ZEND_API char *zend_zval_type_name(const zval *arg);
282 ZEND_API zend_string *zend_zval_get_type(const zval *arg);
287 ZEND_API int zend_parse_parameter(int flags, int arg_num, zval *arg, const char *spec, ...);
393 #define array_init(arg) _array_init((arg), 0 ZEND_FILE_LINE_CC) argument
394 #define array_init_size(arg, size) _array_init((arg), (size) ZEND_FILE_LINE_CC) argument
395 #define object_init(arg) _object_init((arg) ZEND_FILE_LINE_CC) argument
396 #define object_init_ex(arg, ce) _object_init_ex((arg), (ce) ZEND_FILE_LINE_CC) argument
397 #define object_and_properties_init(arg, ce, properties) _object_and_properties_init((arg), (ce), (p… argument
398 ZEND_API int _array_init(zval *arg, uint32_t size ZEND_FILE_LINE_DC);
399 ZEND_API int _object_init(zval *arg ZEND_FILE_LINE_DC);
400 ZEND_API int _object_init_ex(zval *arg, zend_class_entry *ce ZEND_FILE_LINE_DC);
401 ZEND_API int _object_and_properties_init(zval *arg, zend_class_entry *ce, HashTable *properties ZEN…
408 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
409 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
410 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b);
411 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
412 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
413 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
414 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
415 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size…
416 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
434 ZEND_API int add_index_long(zval *arg, zend_ulong idx, zend_long n);
435 ZEND_API int add_index_null(zval *arg, zend_ulong idx);
436 ZEND_API int add_index_bool(zval *arg, zend_ulong idx, int b);
437 ZEND_API int add_index_resource(zval *arg, zend_ulong idx, zend_resource *r);
438 ZEND_API int add_index_double(zval *arg, zend_ulong idx, double d);
439 ZEND_API int add_index_str(zval *arg, zend_ulong idx, zend_string *str);
440 ZEND_API int add_index_string(zval *arg, zend_ulong idx, const char *str);
441 ZEND_API int add_index_stringl(zval *arg, zend_ulong idx, const char *str, size_t length);
442 ZEND_API int add_index_zval(zval *arg, zend_ulong index, zval *value);
444 ZEND_API int add_next_index_long(zval *arg, zend_long n);
445 ZEND_API int add_next_index_null(zval *arg);
446 ZEND_API int add_next_index_bool(zval *arg, int b);
447 ZEND_API int add_next_index_resource(zval *arg, zend_resource *r);
448 ZEND_API int add_next_index_double(zval *arg, double d);
449 ZEND_API int add_next_index_str(zval *arg, zend_string *str);
450 ZEND_API int add_next_index_string(zval *arg, const char *str);
451 ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
452 ZEND_API int add_next_index_zval(zval *arg, zval *value);
454 ZEND_API zval *add_get_assoc_string_ex(zval *arg, const char *key, uint32_t key_len, const char *st…
455 ZEND_API zval *add_get_assoc_stringl_ex(zval *arg, const char *key, uint32_t key_len, const char *s…
460 ZEND_API zval *add_get_index_long(zval *arg, zend_ulong idx, zend_long l);
461 ZEND_API zval *add_get_index_double(zval *arg, zend_ulong idx, double d);
462 ZEND_API zval *add_get_index_str(zval *arg, zend_ulong index, zend_string *str);
463 ZEND_API zval *add_get_index_string(zval *arg, zend_ulong idx, const char *str);
464 ZEND_API zval *add_get_index_stringl(zval *arg, zend_ulong idx, const char *str, size_t length);
468 ZEND_API int add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
469 ZEND_API int add_property_null_ex(zval *arg, const char *key, size_t key_len);
470 ZEND_API int add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
471 ZEND_API int add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
472 ZEND_API int add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
473 ZEND_API int add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
474 ZEND_API int add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
475 ZEND_API int add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, …
476 ZEND_API int add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
573 #define add_method(arg, key, method) add_assoc_function((arg), (key), (method)) argument
718 …wrong_parameter_type_error(zend_bool throw_, int num, zend_expected_type expected_type, zval *arg);
719 …d ZEND_FASTCALL zend_wrong_parameter_class_error(zend_bool throw_, int num, char *name, zval *arg);
1111 ZEND_API int ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pce, int num, int che…
1112 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1113 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1114 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1115 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1116 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_slow(zval *arg, zend_long *dest);
1117 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_weak(zval *arg, zend_long *dest);
1118 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1119 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1120 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1121 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1123 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
1128 if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_bool()
1130 } else if (EXPECTED(Z_TYPE_P(arg) == IS_FALSE)) { in zend_parse_arg_bool()
1132 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_bool()
1136 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1141 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
1146 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_long()
1147 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1148 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_long()
1152 return zend_parse_arg_long_cap_slow(arg, dest); in zend_parse_arg_long()
1154 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1159 static zend_always_inline int zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, in… in zend_parse_arg_double() argument
1164 if (EXPECTED(Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_double()
1165 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1166 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_double()
1170 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1175 static zend_always_inline int zend_parse_arg_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_str() argument
1177 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_str()
1178 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1179 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_str()
1182 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1187 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
1191 if (!zend_parse_arg_str(arg, &str, check_null)) { in zend_parse_arg_string()
1204 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
1206 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1213 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
1217 if (!zend_parse_arg_path_str(arg, &str, check_null)) { in zend_parse_arg_path()
1230 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
1232 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY) || in zend_parse_arg_array()
1233 (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT))) { in zend_parse_arg_array()
1234 *dest = arg; in zend_parse_arg_array()
1235 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array()
1243 static zend_always_inline int zend_parse_arg_array_ht(zval *arg, HashTable **dest, int check_null, … in zend_parse_arg_array_ht() argument
1245 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht()
1246 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
1247 } else if (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_array_ht()
1249 && Z_OBJ_P(arg)->properties in zend_parse_arg_array_ht()
1250 && UNEXPECTED(GC_REFCOUNT(Z_OBJ_P(arg)->properties) > 1)) { in zend_parse_arg_array_ht()
1251 if (EXPECTED(!(GC_FLAGS(Z_OBJ_P(arg)->properties) & IS_ARRAY_IMMUTABLE))) { in zend_parse_arg_array_ht()
1252 GC_REFCOUNT(Z_OBJ_P(arg)->properties)--; in zend_parse_arg_array_ht()
1254 Z_OBJ_P(arg)->properties = zend_array_dup(Z_OBJ_P(arg)->properties); in zend_parse_arg_array_ht()
1256 *dest = Z_OBJ_HT_P(arg)->get_properties(arg); in zend_parse_arg_array_ht()
1257 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht()
1265 static zend_always_inline int zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, i… in zend_parse_arg_object() argument
1267 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && in zend_parse_arg_object()
1268 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_object()
1269 *dest = arg; in zend_parse_arg_object()
1270 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_object()
1278 static zend_always_inline int zend_parse_arg_resource(zval *arg, zval **dest, int check_null) in zend_parse_arg_resource() argument
1280 if (EXPECTED(Z_TYPE_P(arg) == IS_RESOURCE)) { in zend_parse_arg_resource()
1281 *dest = arg; in zend_parse_arg_resource()
1282 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_resource()
1290 static zend_always_inline int zend_parse_arg_func(zval *arg, zend_fcall_info *dest_fci, zend_fcall_… in zend_parse_arg_func() argument
1292 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func()
1296 } else if (UNEXPECTED(zend_fcall_info_init(arg, 0, dest_fci, dest_fcc, NULL, error) != SUCCESS)) { in zend_parse_arg_func()
1302 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval() argument
1305 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval()
1306 (UNEXPECTED(Z_ISREF_P(arg)) && in zend_parse_arg_zval()
1307 UNEXPECTED(Z_TYPE_P(Z_REFVAL_P(arg)) == IS_NULL)))) ? NULL : arg; in zend_parse_arg_zval()
1310 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval_deref() argument
1312 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()