Lines Matching refs:arg

367 ZEND_API const char *zend_zval_type_name(const zval *arg);
368 ZEND_API const char *zend_zval_value_name(const zval *arg);
369 ZEND_API zend_string *zend_zval_get_legacy_type(const zval *arg);
374 ZEND_API zend_result zend_parse_parameter(int flags, uint32_t arg_num, zval *arg, const char *spec,…
537 #define array_init(arg) ZVAL_ARR((arg), zend_new_array(0)) argument
538 #define array_init_size(arg, size) ZVAL_ARR((arg), zend_new_array(size)) argument
539 ZEND_API void object_init(zval *arg);
540 ZEND_API zend_result object_init_ex(zval *arg, zend_class_entry *ce);
541 ZEND_API zend_result object_init_with_constructor(zval *arg, zend_class_entry *class_type, uint32_t…
542 ZEND_API zend_result object_and_properties_init(zval *arg, zend_class_entry *ce, HashTable *propert…
549 ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
550 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
551 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b);
552 ZEND_API void add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
553 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
554 ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
555 ZEND_API void add_assoc_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
556 ZEND_API void add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, siz…
557 ZEND_API void add_assoc_array_ex(zval *arg, const char *key, size_t key_len, zend_array *arr);
558 ZEND_API void add_assoc_object_ex(zval *arg, const char *key, size_t key_len, zend_object *obj);
559 ZEND_API void add_assoc_reference_ex(zval *arg, const char *key, size_t key_len, zend_reference *re…
560 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
562 static zend_always_inline void add_assoc_long(zval *arg, const char *key, zend_long n) { in add_assoc_long() argument
563 add_assoc_long_ex(arg, key, strlen(key), n); in add_assoc_long()
565 static zend_always_inline void add_assoc_null(zval *arg, const char *key) { in add_assoc_null() argument
566 add_assoc_null_ex(arg, key, strlen(key)); in add_assoc_null()
568 static zend_always_inline void add_assoc_bool(zval *arg, const char *key, bool b) { in add_assoc_bool() argument
569 add_assoc_bool_ex(arg, key, strlen(key), b); in add_assoc_bool()
571 static zend_always_inline void add_assoc_resource(zval *arg, const char *key, zend_resource *r) { in add_assoc_resource() argument
572 add_assoc_resource_ex(arg, key, strlen(key), r); in add_assoc_resource()
574 static zend_always_inline void add_assoc_double(zval *arg, const char *key, double d) { in add_assoc_double() argument
575 add_assoc_double_ex(arg, key, strlen(key), d); in add_assoc_double()
577 static zend_always_inline void add_assoc_str(zval *arg, const char *key, zend_string *str) { in add_assoc_str() argument
578 add_assoc_str_ex(arg, key, strlen(key), str); in add_assoc_str()
580 static zend_always_inline void add_assoc_string(zval *arg, const char *key, const char *str) { in add_assoc_string() argument
581 add_assoc_string_ex(arg, key, strlen(key), str); in add_assoc_string()
583 static zend_always_inline void add_assoc_stringl(zval *arg, const char *key, const char *str, size_… in add_assoc_stringl() argument
584 add_assoc_stringl_ex(arg, key, strlen(key), str, length); in add_assoc_stringl()
586 static zend_always_inline void add_assoc_array(zval *arg, const char *key, zend_array *arr) { in add_assoc_array() argument
587 add_assoc_array_ex(arg, key, strlen(key), arr); in add_assoc_array()
589 static zend_always_inline void add_assoc_object(zval *arg, const char *key, zend_object *obj) { in add_assoc_object() argument
590 add_assoc_object_ex(arg, key, strlen(key), obj); in add_assoc_object()
592 static zend_always_inline void add_assoc_reference(zval *arg, const char *key, zend_reference *ref)… in add_assoc_reference() argument
593 add_assoc_reference_ex(arg, key, strlen(key), ref); in add_assoc_reference()
595 static zend_always_inline void add_assoc_zval(zval *arg, const char *key, zval *value) { in add_assoc_zval() argument
596 add_assoc_zval_ex(arg, key, strlen(key), value); in add_assoc_zval()
599 ZEND_API void add_index_long(zval *arg, zend_ulong index, zend_long n);
600 ZEND_API void add_index_null(zval *arg, zend_ulong index);
601 ZEND_API void add_index_bool(zval *arg, zend_ulong index, bool b);
602 ZEND_API void add_index_resource(zval *arg, zend_ulong index, zend_resource *r);
603 ZEND_API void add_index_double(zval *arg, zend_ulong index, double d);
604 ZEND_API void add_index_str(zval *arg, zend_ulong index, zend_string *str);
605 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str);
606 ZEND_API void add_index_stringl(zval *arg, zend_ulong index, const char *str, size_t length);
607 ZEND_API void add_index_array(zval *arg, zend_ulong index, zend_array *arr);
608 ZEND_API void add_index_object(zval *arg, zend_ulong index, zend_object *obj);
609 ZEND_API void add_index_reference(zval *arg, zend_ulong index, zend_reference *ref);
611 static zend_always_inline zend_result add_index_zval(zval *arg, zend_ulong index, zval *value) in add_index_zval() argument
613 return zend_hash_index_update(Z_ARRVAL_P(arg), index, value) ? SUCCESS : FAILURE; in add_index_zval()
616 ZEND_API zend_result add_next_index_long(zval *arg, zend_long n);
617 ZEND_API zend_result add_next_index_null(zval *arg);
618 ZEND_API zend_result add_next_index_bool(zval *arg, bool b);
619 ZEND_API zend_result add_next_index_resource(zval *arg, zend_resource *r);
620 ZEND_API zend_result add_next_index_double(zval *arg, double d);
621 ZEND_API zend_result add_next_index_str(zval *arg, zend_string *str);
622 ZEND_API zend_result add_next_index_string(zval *arg, const char *str);
623 ZEND_API zend_result add_next_index_stringl(zval *arg, const char *str, size_t length);
624 ZEND_API zend_result add_next_index_array(zval *arg, zend_array *arr);
625 ZEND_API zend_result add_next_index_object(zval *arg, zend_object *obj);
626 ZEND_API zend_result add_next_index_reference(zval *arg, zend_reference *ref);
628 static zend_always_inline zend_result add_next_index_zval(zval *arg, zval *value) in add_next_index_zval() argument
630 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), value) ? SUCCESS : FAILURE; in add_next_index_zval()
635 ZEND_API void add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
636 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len);
637 ZEND_API void add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
638 ZEND_API void add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r…
639 ZEND_API void add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
640 ZEND_API void add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
641 ZEND_API void add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
642 ZEND_API void add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str,…
643 ZEND_API void add_property_array_ex(zval *arg, const char *key, size_t key_len, zend_array *arr);
644 ZEND_API void add_property_object_ex(zval *arg, const char *key, size_t key_len, zend_object *obj);
645 ZEND_API void add_property_reference_ex(zval *arg, const char *key, size_t key_len, zend_reference …
646 ZEND_API void add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
648 static zend_always_inline void add_property_long(zval *arg, const char *key, zend_long n) { in add_property_long() argument
649 add_property_long_ex(arg, key, strlen(key), n); in add_property_long()
651 static zend_always_inline void add_property_null(zval *arg, const char *key) { in add_property_null() argument
652 add_property_null_ex(arg, key, strlen(key)); in add_property_null()
654 static zend_always_inline void add_property_bool(zval *arg, const char *key, bool b) { in add_property_bool() argument
655 add_property_bool_ex(arg, key, strlen(key), b); in add_property_bool()
657 static zend_always_inline void add_property_resource(zval *arg, const char *key, zend_resource *r) { in add_property_resource() argument
658 add_property_resource_ex(arg, key, strlen(key), r); in add_property_resource()
660 static zend_always_inline void add_property_double(zval *arg, const char *key, double d) { in add_property_double() argument
661 add_property_double_ex(arg, key, strlen(key), d); in add_property_double()
663 static zend_always_inline void add_property_str(zval *arg, const char *key, zend_string *str) { in add_property_str() argument
664 add_property_str_ex(arg, key, strlen(key), str); in add_property_str()
666 static zend_always_inline void add_property_string(zval *arg, const char *key, const char *str) { in add_property_string() argument
667 add_property_string_ex(arg, key, strlen(key), str); in add_property_string()
669 static zend_always_inline void add_property_stringl(zval *arg, const char *key, const char *str, si… in add_property_stringl() argument
670 add_property_stringl_ex(arg, key, strlen(key), str, length); in add_property_stringl()
672 static zend_always_inline void add_property_array(zval *arg, const char *key, zend_array *arr) { in add_property_array() argument
673 add_property_array_ex(arg, key, strlen(key), arr); in add_property_array()
675 static zend_always_inline void add_property_object(zval *arg, const char *key, zend_object *obj) { in add_property_object() argument
676 add_property_object_ex(arg, key, strlen(key), obj); in add_property_object()
678 static zend_always_inline void add_property_reference(zval *arg, const char *key, zend_reference *r… in add_property_reference() argument
679 add_property_reference_ex(arg, key, strlen(key), ref); in add_property_reference()
681 static zend_always_inline void add_property_zval(zval *arg, const char *key, zval *value) { in add_property_zval() argument
682 add_property_zval_ex(arg, key, strlen(key), value); in add_property_zval()
1556 …meter_error(int error_code, uint32_t num, char *name, zend_expected_type expected_type, zval *arg);
1557 …ASTCALL zend_wrong_parameter_type_error(uint32_t num, zend_expected_type expected_type, zval *arg);
1558 …OLD void ZEND_FASTCALL zend_wrong_parameter_class_error(uint32_t num, const char *name, zval *arg);
1559 … ZEND_FASTCALL zend_wrong_parameter_class_or_null_error(uint32_t num, const char *name, zval *arg);
1560 … ZEND_FASTCALL zend_wrong_parameter_class_or_long_error(uint32_t num, const char *name, zval *arg);
1561 …STCALL zend_wrong_parameter_class_or_long_or_null_error(uint32_t num, const char *name, zval *arg);
1562 …END_FASTCALL zend_wrong_parameter_class_or_string_error(uint32_t num, const char *name, zval *arg);
1563 …CALL zend_wrong_parameter_class_or_string_or_null_error(uint32_t num, const char *name, zval *arg);
2175 ZEND_API bool ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pce, uint32_t num, b…
2176 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow(const zval *arg, bool *dest, uint32_t arg_num);
2177 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak(const zval *arg, bool *dest, uint32_t arg_num);
2178 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow(const zval *arg, zend_long *dest, uint32_t arg…
2179 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak(const zval *arg, zend_long *dest, uint32_t arg…
2180 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow(const zval *arg, double *dest, uint32_t arg_…
2181 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak(const zval *arg, double *dest, uint32_t arg_…
2182 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest, uint32_t arg_num…
2183 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest, uint32_t arg_num…
2184 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow(zval *arg, zval **dest, uint32_t arg_num);
2185 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_or_str_slow(zval *arg, zval **dest, uint32_t arg_…
2186 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_or_long_slow(zval *arg, zend_string **dest_str, zend…
2188 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_bool_slow(const zval *arg, bool *dest, uint32_t arg_…
2189 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_str_slow(zval *arg, zend_string **dest, uint32_t arg…
2190 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_long_slow(const zval *arg, zend_long *dest, uint32_t…
2192 static zend_always_inline bool zend_parse_arg_bool_ex(const zval *arg, bool *dest, bool *is_null, b… in zend_parse_arg_bool_ex() argument
2197 if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_bool_ex()
2199 } else if (EXPECTED(Z_TYPE_P(arg) == IS_FALSE)) { in zend_parse_arg_bool_ex()
2201 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_bool_ex()
2206 return zend_flf_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex()
2208 return zend_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex()
2214 static zend_always_inline bool zend_parse_arg_bool(const zval *arg, bool *dest, bool *is_null, bool… in zend_parse_arg_bool() argument
2216 return zend_parse_arg_bool_ex(arg, dest, is_null, check_null, arg_num, /* frameless */ false); in zend_parse_arg_bool()
2219 static zend_always_inline bool zend_parse_arg_long_ex(zval *arg, zend_long *dest, bool *is_null, bo… in zend_parse_arg_long_ex() argument
2224 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_long_ex()
2225 *dest = Z_LVAL_P(arg); in zend_parse_arg_long_ex()
2226 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_long_ex()
2231 return zend_flf_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex()
2233 return zend_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex()
2239 static zend_always_inline bool zend_parse_arg_long(zval *arg, zend_long *dest, bool *is_null, bool … in zend_parse_arg_long() argument
2241 return zend_parse_arg_long_ex(arg, dest, is_null, check_null, arg_num, /* frameless */ false); in zend_parse_arg_long()
2244 static zend_always_inline bool zend_parse_arg_double(const zval *arg, double *dest, bool *is_null, … in zend_parse_arg_double() argument
2249 if (EXPECTED(Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_double()
2250 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
2251 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_double()
2255 return zend_parse_arg_double_slow(arg, dest, arg_num); in zend_parse_arg_double()
2260 static zend_always_inline bool zend_parse_arg_number(zval *arg, zval **dest, bool check_null, uint3… in zend_parse_arg_number() argument
2262 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG || Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_number()
2263 *dest = arg; in zend_parse_arg_number()
2264 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_number()
2267 return zend_parse_arg_number_slow(arg, dest, arg_num); in zend_parse_arg_number()
2272 static zend_always_inline bool zend_parse_arg_number_or_str(zval *arg, zval **dest, bool check_null… in zend_parse_arg_number_or_str() argument
2274 …if (EXPECTED(Z_TYPE_P(arg) == IS_LONG || Z_TYPE_P(arg) == IS_DOUBLE || Z_TYPE_P(arg) == IS_STRING)… in zend_parse_arg_number_or_str()
2275 *dest = arg; in zend_parse_arg_number_or_str()
2276 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_number_or_str()
2279 return zend_parse_arg_number_or_str_slow(arg, dest, arg_num); in zend_parse_arg_number_or_str()
2284 static zend_always_inline bool zend_parse_arg_str_ex(zval *arg, zend_string **dest, bool check_null… in zend_parse_arg_str_ex() argument
2286 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_str_ex()
2287 *dest = Z_STR_P(arg); in zend_parse_arg_str_ex()
2288 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_str_ex()
2292 return zend_flf_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex()
2294 return zend_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex()
2300 static zend_always_inline bool zend_parse_arg_str(zval *arg, zend_string **dest, bool check_null, u… in zend_parse_arg_str() argument
2302 return zend_parse_arg_str_ex(arg, dest, check_null, arg_num, /* frameless */ false); in zend_parse_arg_str()
2305 static zend_always_inline bool zend_parse_arg_string(zval *arg, char **dest, size_t *dest_len, bool… in zend_parse_arg_string() argument
2309 if (!zend_parse_arg_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_string()
2322 static zend_always_inline bool zend_parse_arg_path_str(zval *arg, zend_string **dest, bool check_nu… in zend_parse_arg_path_str() argument
2324 if (!zend_parse_arg_str(arg, dest, check_null, arg_num) || in zend_parse_arg_path_str()
2331 static zend_always_inline bool zend_parse_arg_path(zval *arg, char **dest, size_t *dest_len, bool c… in zend_parse_arg_path() argument
2335 if (!zend_parse_arg_path_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_path()
2348 static zend_always_inline bool zend_parse_arg_iterable(zval *arg, zval **dest, bool check_null) in zend_parse_arg_iterable() argument
2350 if (EXPECTED(zend_is_iterable(arg))) { in zend_parse_arg_iterable()
2351 *dest = arg; in zend_parse_arg_iterable()
2355 if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_iterable()
2363 static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool check_null, bool o… in zend_parse_arg_array() argument
2365 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY) || in zend_parse_arg_array()
2366 (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT))) { in zend_parse_arg_array()
2367 *dest = arg; in zend_parse_arg_array()
2368 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array()
2376 static zend_always_inline bool zend_parse_arg_array_ht(const zval *arg, HashTable **dest, bool chec… in zend_parse_arg_array_ht() argument
2378 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht()
2379 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
2380 } else if (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_array_ht()
2381 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_array_ht()
2391 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht()
2400 …zval *arg, HashTable **dest_ht, zend_long *dest_long, bool *is_null, bool allow_null, uint32_t arg… in zend_parse_arg_array_ht_or_long() argument
2406 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht_or_long()
2407 *dest_ht = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht_or_long()
2408 } else if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_array_ht_or_long()
2410 *dest_long = Z_LVAL_P(arg); in zend_parse_arg_array_ht_or_long()
2411 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht_or_long()
2416 return zend_parse_arg_long_slow(arg, dest_long, arg_num); in zend_parse_arg_array_ht_or_long()
2422 static zend_always_inline bool zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, … in zend_parse_arg_object() argument
2424 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && in zend_parse_arg_object()
2425 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_object()
2426 *dest = arg; in zend_parse_arg_object()
2427 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_object()
2435 static zend_always_inline bool zend_parse_arg_obj(const zval *arg, zend_object **dest, zend_class_e… in zend_parse_arg_obj() argument
2437 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && in zend_parse_arg_obj()
2438 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_obj()
2439 *dest = Z_OBJ_P(arg); in zend_parse_arg_obj()
2440 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_obj()
2449 …zval *arg, zend_object **dest_obj, zend_class_entry *ce, zend_long *dest_long, bool *is_null, bool… in zend_parse_arg_obj_or_long() argument
2455 …if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0)… in zend_parse_arg_obj_or_long()
2456 *dest_obj = Z_OBJ_P(arg); in zend_parse_arg_obj_or_long()
2457 } else if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_obj_or_long()
2459 *dest_long = Z_LVAL_P(arg); in zend_parse_arg_obj_or_long()
2460 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_obj_or_long()
2465 return zend_parse_arg_long_slow(arg, dest_long, arg_num); in zend_parse_arg_obj_or_long()
2471 static zend_always_inline bool zend_parse_arg_resource(zval *arg, zval **dest, bool check_null) in zend_parse_arg_resource() argument
2473 if (EXPECTED(Z_TYPE_P(arg) == IS_RESOURCE)) { in zend_parse_arg_resource()
2474 *dest = arg; in zend_parse_arg_resource()
2475 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_resource()
2483 static zend_always_inline bool zend_parse_arg_func(zval *arg, zend_fcall_info *dest_fci, zend_fcall… in zend_parse_arg_func() argument
2485 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func()
2489 } else if (UNEXPECTED(zend_fcall_info_init(arg, 0, dest_fci, dest_fcc, NULL, error) != SUCCESS)) { in zend_parse_arg_func()
2501 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval() argument
2504 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval()
2505 (UNEXPECTED(Z_ISREF_P(arg)) && in zend_parse_arg_zval()
2506 UNEXPECTED(Z_TYPE_P(Z_REFVAL_P(arg)) == IS_NULL)))) ? NULL : arg; in zend_parse_arg_zval()
2509 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval_deref() argument
2511 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()
2515 zval *arg, HashTable **dest_ht, zend_string **dest_str, bool allow_null, uint32_t arg_num) in zend_parse_arg_array_ht_or_str() argument
2517 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_array_ht_or_str()
2519 *dest_str = Z_STR_P(arg); in zend_parse_arg_array_ht_or_str()
2520 } else if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht_or_str()
2521 *dest_ht = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht_or_str()
2523 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht_or_str()
2528 return zend_parse_arg_str_slow(arg, dest_str, arg_num); in zend_parse_arg_array_ht_or_str()
2533 static zend_always_inline bool zend_parse_arg_str_or_long(zval *arg, zend_string **dest_str, zend_l… in zend_parse_arg_str_or_long() argument
2539 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_str_or_long()
2540 *dest_str = Z_STR_P(arg); in zend_parse_arg_str_or_long()
2541 } else if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_str_or_long()
2543 *dest_long = Z_LVAL_P(arg); in zend_parse_arg_str_or_long()
2544 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_str_or_long()
2548 return zend_parse_arg_str_or_long_slow(arg, dest_str, dest_long, arg_num); in zend_parse_arg_str_or_long()
2554 zval *arg, zend_class_entry **destination, bool allow_null in zend_parse_arg_obj_or_class_name() argument
2556 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_obj_or_class_name()
2557 *destination = zend_lookup_class(Z_STR_P(arg)); in zend_parse_arg_obj_or_class_name()
2560 } else if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_obj_or_class_name()
2561 *destination = Z_OBJ_P(arg)->ce; in zend_parse_arg_obj_or_class_name()
2562 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_obj_or_class_name()
2572 …zval *arg, zend_object **destination_object, zend_class_entry *base_ce, zend_string **destination_… in zend_parse_arg_obj_or_str() argument
2574 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_obj_or_str()
2575 if (!base_ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), base_ce))) { in zend_parse_arg_obj_or_str()
2576 *destination_object = Z_OBJ_P(arg); in zend_parse_arg_obj_or_str()
2583 return zend_parse_arg_str(arg, destination_string, allow_null, arg_num); in zend_parse_arg_obj_or_str()