Lines Matching refs:arg

359 ZEND_API const char *zend_zval_type_name(const zval *arg);
360 ZEND_API zend_string *zend_zval_get_legacy_type(const zval *arg);
365 ZEND_API zend_result zend_parse_parameter(int flags, uint32_t arg_num, zval *arg, const char *spec,…
524 #define array_init(arg) ZVAL_ARR((arg), zend_new_array(0)) argument
525 #define array_init_size(arg, size) ZVAL_ARR((arg), zend_new_array(size)) argument
526 ZEND_API void object_init(zval *arg);
527 ZEND_API zend_result object_init_ex(zval *arg, zend_class_entry *ce);
528 ZEND_API zend_result object_and_properties_init(zval *arg, zend_class_entry *ce, HashTable *propert…
535 ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
536 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
537 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b);
538 ZEND_API void add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
539 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
540 ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
541 ZEND_API void add_assoc_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
542 ZEND_API void add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, siz…
543 ZEND_API void add_assoc_array_ex(zval *arg, const char *key, size_t key_len, zend_array *arr);
544 ZEND_API void add_assoc_object_ex(zval *arg, const char *key, size_t key_len, zend_object *obj);
545 ZEND_API void add_assoc_reference_ex(zval *arg, const char *key, size_t key_len, zend_reference *re…
546 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
548 static zend_always_inline void add_assoc_long(zval *arg, const char *key, zend_long n) { in add_assoc_long() argument
549 add_assoc_long_ex(arg, key, strlen(key), n); in add_assoc_long()
551 static zend_always_inline void add_assoc_null(zval *arg, const char *key) { in add_assoc_null() argument
552 add_assoc_null_ex(arg, key, strlen(key)); in add_assoc_null()
554 static zend_always_inline void add_assoc_bool(zval *arg, const char *key, bool b) { in add_assoc_bool() argument
555 add_assoc_bool_ex(arg, key, strlen(key), b); in add_assoc_bool()
557 static zend_always_inline void add_assoc_resource(zval *arg, const char *key, zend_resource *r) { in add_assoc_resource() argument
558 add_assoc_resource_ex(arg, key, strlen(key), r); in add_assoc_resource()
560 static zend_always_inline void add_assoc_double(zval *arg, const char *key, double d) { in add_assoc_double() argument
561 add_assoc_double_ex(arg, key, strlen(key), d); in add_assoc_double()
563 static zend_always_inline void add_assoc_str(zval *arg, const char *key, zend_string *str) { in add_assoc_str() argument
564 add_assoc_str_ex(arg, key, strlen(key), str); in add_assoc_str()
566 static zend_always_inline void add_assoc_string(zval *arg, const char *key, const char *str) { in add_assoc_string() argument
567 add_assoc_string_ex(arg, key, strlen(key), str); in add_assoc_string()
569 static zend_always_inline void add_assoc_stringl(zval *arg, const char *key, const char *str, size_… in add_assoc_stringl() argument
570 add_assoc_stringl_ex(arg, key, strlen(key), str, length); in add_assoc_stringl()
572 static zend_always_inline void add_assoc_array(zval *arg, const char *key, zend_array *arr) { in add_assoc_array() argument
573 add_assoc_array_ex(arg, key, strlen(key), arr); in add_assoc_array()
575 static zend_always_inline void add_assoc_object(zval *arg, const char *key, zend_object *obj) { in add_assoc_object() argument
576 add_assoc_object_ex(arg, key, strlen(key), obj); in add_assoc_object()
578 static zend_always_inline void add_assoc_reference(zval *arg, const char *key, zend_reference *ref)… in add_assoc_reference() argument
579 add_assoc_reference_ex(arg, key, strlen(key), ref); in add_assoc_reference()
581 static zend_always_inline void add_assoc_zval(zval *arg, const char *key, zval *value) { in add_assoc_zval() argument
582 add_assoc_zval_ex(arg, key, strlen(key), value); in add_assoc_zval()
585 ZEND_API void add_index_long(zval *arg, zend_ulong index, zend_long n);
586 ZEND_API void add_index_null(zval *arg, zend_ulong index);
587 ZEND_API void add_index_bool(zval *arg, zend_ulong index, bool b);
588 ZEND_API void add_index_resource(zval *arg, zend_ulong index, zend_resource *r);
589 ZEND_API void add_index_double(zval *arg, zend_ulong index, double d);
590 ZEND_API void add_index_str(zval *arg, zend_ulong index, zend_string *str);
591 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str);
592 ZEND_API void add_index_stringl(zval *arg, zend_ulong index, const char *str, size_t length);
593 ZEND_API void add_index_array(zval *arg, zend_ulong index, zend_array *arr);
594 ZEND_API void add_index_object(zval *arg, zend_ulong index, zend_object *obj);
595 ZEND_API void add_index_reference(zval *arg, zend_ulong index, zend_reference *ref);
597 static zend_always_inline zend_result add_index_zval(zval *arg, zend_ulong index, zval *value) in add_index_zval() argument
599 return zend_hash_index_update(Z_ARRVAL_P(arg), index, value) ? SUCCESS : FAILURE; in add_index_zval()
602 ZEND_API zend_result add_next_index_long(zval *arg, zend_long n);
603 ZEND_API zend_result add_next_index_null(zval *arg);
604 ZEND_API zend_result add_next_index_bool(zval *arg, bool b);
605 ZEND_API zend_result add_next_index_resource(zval *arg, zend_resource *r);
606 ZEND_API zend_result add_next_index_double(zval *arg, double d);
607 ZEND_API zend_result add_next_index_str(zval *arg, zend_string *str);
608 ZEND_API zend_result add_next_index_string(zval *arg, const char *str);
609 ZEND_API zend_result add_next_index_stringl(zval *arg, const char *str, size_t length);
610 ZEND_API zend_result add_next_index_array(zval *arg, zend_array *arr);
611 ZEND_API zend_result add_next_index_object(zval *arg, zend_object *obj);
612 ZEND_API zend_result add_next_index_reference(zval *arg, zend_reference *ref);
614 static zend_always_inline zend_result add_next_index_zval(zval *arg, zval *value) in add_next_index_zval() argument
616 return zend_hash_next_index_insert(Z_ARRVAL_P(arg), value) ? SUCCESS : FAILURE; in add_next_index_zval()
621 ZEND_API void add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
622 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len);
623 ZEND_API void add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
624 ZEND_API void add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r…
625 ZEND_API void add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
626 ZEND_API void add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
627 ZEND_API void add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str);
628 ZEND_API void add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str,…
629 ZEND_API void add_property_array_ex(zval *arg, const char *key, size_t key_len, zend_array *arr);
630 ZEND_API void add_property_object_ex(zval *arg, const char *key, size_t key_len, zend_object *obj);
631 ZEND_API void add_property_reference_ex(zval *arg, const char *key, size_t key_len, zend_reference …
632 ZEND_API void add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
634 static zend_always_inline void add_property_long(zval *arg, const char *key, zend_long n) { in add_property_long() argument
635 add_property_long_ex(arg, key, strlen(key), n); in add_property_long()
637 static zend_always_inline void add_property_null(zval *arg, const char *key) { in add_property_null() argument
638 add_property_null_ex(arg, key, strlen(key)); in add_property_null()
640 static zend_always_inline void add_property_bool(zval *arg, const char *key, bool b) { in add_property_bool() argument
641 add_property_bool_ex(arg, key, strlen(key), b); in add_property_bool()
643 static zend_always_inline void add_property_resource(zval *arg, const char *key, zend_resource *r) { in add_property_resource() argument
644 add_property_resource_ex(arg, key, strlen(key), r); in add_property_resource()
646 static zend_always_inline void add_property_double(zval *arg, const char *key, double d) { in add_property_double() argument
647 add_property_double_ex(arg, key, strlen(key), d); in add_property_double()
649 static zend_always_inline void add_property_str(zval *arg, const char *key, zend_string *str) { in add_property_str() argument
650 add_property_str_ex(arg, key, strlen(key), str); in add_property_str()
652 static zend_always_inline void add_property_string(zval *arg, const char *key, const char *str) { in add_property_string() argument
653 add_property_string_ex(arg, key, strlen(key), str); in add_property_string()
655 static zend_always_inline void add_property_stringl(zval *arg, const char *key, const char *str, si… in add_property_stringl() argument
656 add_property_stringl_ex(arg, key, strlen(key), str, length); in add_property_stringl()
658 static zend_always_inline void add_property_array(zval *arg, const char *key, zend_array *arr) { in add_property_array() argument
659 add_property_array_ex(arg, key, strlen(key), arr); in add_property_array()
661 static zend_always_inline void add_property_object(zval *arg, const char *key, zend_object *obj) { in add_property_object() argument
662 add_property_object_ex(arg, key, strlen(key), obj); in add_property_object()
664 static zend_always_inline void add_property_reference(zval *arg, const char *key, zend_reference *r… in add_property_reference() argument
665 add_property_reference_ex(arg, key, strlen(key), ref); in add_property_reference()
667 static zend_always_inline void add_property_zval(zval *arg, const char *key, zval *value) { in add_property_zval() argument
668 add_property_zval_ex(arg, key, strlen(key), value); in add_property_zval()
1444 …meter_error(int error_code, uint32_t num, char *name, zend_expected_type expected_type, zval *arg);
1445 …ASTCALL zend_wrong_parameter_type_error(uint32_t num, zend_expected_type expected_type, zval *arg);
1446 …OLD void ZEND_FASTCALL zend_wrong_parameter_class_error(uint32_t num, const char *name, zval *arg);
1447 … ZEND_FASTCALL zend_wrong_parameter_class_or_null_error(uint32_t num, const char *name, zval *arg);
1448 … ZEND_FASTCALL zend_wrong_parameter_class_or_long_error(uint32_t num, const char *name, zval *arg);
1449 …STCALL zend_wrong_parameter_class_or_long_or_null_error(uint32_t num, const char *name, zval *arg);
1450 …END_FASTCALL zend_wrong_parameter_class_or_string_error(uint32_t num, const char *name, zval *arg);
1451 …CALL zend_wrong_parameter_class_or_string_or_null_error(uint32_t num, const char *name, zval *arg);
2038 ZEND_API bool ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pce, uint32_t num, b…
2039 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, bool *dest, uint32_t arg_num);
2040 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, bool *dest, uint32_t arg_num);
2041 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest, uint32_t arg_num);
2042 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest, uint32_t arg_num);
2043 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest, uint32_t arg_num);
2044 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest, uint32_t arg_num);
2045 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest, uint32_t arg_num…
2046 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest, uint32_t arg_num…
2047 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow(zval *arg, zval **dest, uint32_t arg_num);
2048 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_or_long_slow(zval *arg, zend_string **dest_str, zend…
2050 static zend_always_inline bool zend_parse_arg_bool(zval *arg, bool *dest, bool *is_null, bool check… in zend_parse_arg_bool() argument
2055 if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) { in zend_parse_arg_bool()
2057 } else if (EXPECTED(Z_TYPE_P(arg) == IS_FALSE)) { in zend_parse_arg_bool()
2059 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_bool()
2063 return zend_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool()
2068 static zend_always_inline bool zend_parse_arg_long(zval *arg, zend_long *dest, bool *is_null, bool … in zend_parse_arg_long() argument
2073 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_long()
2074 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
2075 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_long()
2079 return zend_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long()
2084 static zend_always_inline bool zend_parse_arg_double(zval *arg, double *dest, bool *is_null, bool c… in zend_parse_arg_double() argument
2089 if (EXPECTED(Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_double()
2090 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
2091 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_double()
2095 return zend_parse_arg_double_slow(arg, dest, arg_num); in zend_parse_arg_double()
2100 static zend_always_inline bool zend_parse_arg_number(zval *arg, zval **dest, bool check_null, uint3… in zend_parse_arg_number() argument
2102 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG || Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_number()
2103 *dest = arg; in zend_parse_arg_number()
2104 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_number()
2107 return zend_parse_arg_number_slow(arg, dest, arg_num); in zend_parse_arg_number()
2112 static zend_always_inline bool zend_parse_arg_str(zval *arg, zend_string **dest, bool check_null, u… in zend_parse_arg_str() argument
2114 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_str()
2115 *dest = Z_STR_P(arg); in zend_parse_arg_str()
2116 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_str()
2119 return zend_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str()
2124 static zend_always_inline bool zend_parse_arg_string(zval *arg, char **dest, size_t *dest_len, bool… in zend_parse_arg_string() argument
2128 if (!zend_parse_arg_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_string()
2141 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
2143 if (!zend_parse_arg_str(arg, dest, check_null, arg_num) || in zend_parse_arg_path_str()
2150 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
2154 if (!zend_parse_arg_path_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_path()
2167 static zend_always_inline bool zend_parse_arg_iterable(zval *arg, zval **dest, bool check_null) in zend_parse_arg_iterable() argument
2169 if (EXPECTED(zend_is_iterable(arg))) { in zend_parse_arg_iterable()
2170 *dest = arg; in zend_parse_arg_iterable()
2174 if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_iterable()
2182 static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool check_null, bool o… in zend_parse_arg_array() argument
2184 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY) || in zend_parse_arg_array()
2185 (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT))) { in zend_parse_arg_array()
2186 *dest = arg; in zend_parse_arg_array()
2187 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array()
2195 static zend_always_inline bool zend_parse_arg_array_ht(zval *arg, HashTable **dest, bool check_null… in zend_parse_arg_array_ht() argument
2197 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht()
2198 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
2199 } else if (or_object && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_array_ht()
2200 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_array_ht()
2210 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht()
2219 …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
2225 if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht_or_long()
2226 *dest_ht = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht_or_long()
2227 } else if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_array_ht_or_long()
2229 *dest_long = Z_LVAL_P(arg); in zend_parse_arg_array_ht_or_long()
2230 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht_or_long()
2235 return zend_parse_arg_long_slow(arg, dest_long, arg_num); in zend_parse_arg_array_ht_or_long()
2241 static zend_always_inline bool zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, … in zend_parse_arg_object() argument
2243 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && in zend_parse_arg_object()
2244 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_object()
2245 *dest = arg; in zend_parse_arg_object()
2246 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_object()
2254 static zend_always_inline bool zend_parse_arg_obj(zval *arg, zend_object **dest, zend_class_entry *… in zend_parse_arg_obj() argument
2256 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && in zend_parse_arg_obj()
2257 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_obj()
2258 *dest = Z_OBJ_P(arg); in zend_parse_arg_obj()
2259 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_obj()
2268 …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
2274 …if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT) && EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0)… in zend_parse_arg_obj_or_long()
2275 *dest_obj = Z_OBJ_P(arg); in zend_parse_arg_obj_or_long()
2276 } else if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_obj_or_long()
2278 *dest_long = Z_LVAL_P(arg); in zend_parse_arg_obj_or_long()
2279 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_obj_or_long()
2284 return zend_parse_arg_long_slow(arg, dest_long, arg_num); in zend_parse_arg_obj_or_long()
2290 static zend_always_inline bool zend_parse_arg_resource(zval *arg, zval **dest, bool check_null) in zend_parse_arg_resource() argument
2292 if (EXPECTED(Z_TYPE_P(arg) == IS_RESOURCE)) { in zend_parse_arg_resource()
2293 *dest = arg; in zend_parse_arg_resource()
2294 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_resource()
2302 static zend_always_inline bool zend_parse_arg_func(zval *arg, zend_fcall_info *dest_fci, zend_fcall… in zend_parse_arg_func() argument
2304 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func()
2308 } else if (UNEXPECTED(zend_fcall_info_init(arg, 0, dest_fci, dest_fcc, NULL, error) != SUCCESS)) { in zend_parse_arg_func()
2318 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval() argument
2321 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval()
2322 (UNEXPECTED(Z_ISREF_P(arg)) && in zend_parse_arg_zval()
2323 UNEXPECTED(Z_TYPE_P(Z_REFVAL_P(arg)) == IS_NULL)))) ? NULL : arg; in zend_parse_arg_zval()
2326 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval_deref() argument
2328 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()
2332 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
2334 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_array_ht_or_str()
2336 *dest_str = Z_STR_P(arg); in zend_parse_arg_array_ht_or_str()
2337 } else if (EXPECTED(Z_TYPE_P(arg) == IS_ARRAY)) { in zend_parse_arg_array_ht_or_str()
2338 *dest_ht = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht_or_str()
2340 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht_or_str()
2345 return zend_parse_arg_str_slow(arg, dest_str, arg_num); in zend_parse_arg_array_ht_or_str()
2350 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
2356 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_str_or_long()
2357 *dest_str = Z_STR_P(arg); in zend_parse_arg_str_or_long()
2358 } else if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) { in zend_parse_arg_str_or_long()
2360 *dest_long = Z_LVAL_P(arg); in zend_parse_arg_str_or_long()
2361 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_str_or_long()
2365 return zend_parse_arg_str_or_long_slow(arg, dest_str, dest_long, arg_num); in zend_parse_arg_str_or_long()
2371 zval *arg, zend_class_entry **destination, bool allow_null in zend_parse_arg_obj_or_class_name() argument
2373 if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { in zend_parse_arg_obj_or_class_name()
2374 *destination = zend_lookup_class(Z_STR_P(arg)); in zend_parse_arg_obj_or_class_name()
2377 } else if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_obj_or_class_name()
2378 *destination = Z_OBJ_P(arg)->ce; in zend_parse_arg_obj_or_class_name()
2379 } else if (allow_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_obj_or_class_name()
2389 …zval *arg, zend_object **destination_object, zend_class_entry *base_ce, zend_string **destination_… in zend_parse_arg_obj_or_str() argument
2391 if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { in zend_parse_arg_obj_or_str()
2392 if (!base_ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), base_ce))) { in zend_parse_arg_obj_or_str()
2393 *destination_object = Z_OBJ_P(arg); in zend_parse_arg_obj_or_str()
2400 return zend_parse_arg_str(arg, destination_string, allow_null, arg_num); in zend_parse_arg_obj_or_str()