Lines Matching refs:dest

786 static zend_always_inline void zend_fcc_dup(/* restrict */ zend_fcall_info_cache *dest, const zend_…  in zend_fcc_dup()  argument
788 memcpy(dest, src, sizeof(zend_fcall_info_cache)); in zend_fcc_dup()
789 zend_fcc_addref(dest); in zend_fcc_dup()
1660 #define Z_PARAM_GET_PREV_ZVAL(dest) \ argument
1661 zend_parse_arg_zval_deref(_arg, &dest, 0);
1668 #define Z_PARAM_ARRAY_EX2(dest, check_null, deref, separate) \ argument
1670 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
1676 #define Z_PARAM_ARRAY_EX(dest, check_null, separate) \ argument
1677 Z_PARAM_ARRAY_EX2(dest, check_null, separate, separate)
1679 #define Z_PARAM_ARRAY(dest) \ argument
1680 Z_PARAM_ARRAY_EX(dest, 0, 0)
1682 #define Z_PARAM_ARRAY_OR_NULL(dest) \ argument
1683 Z_PARAM_ARRAY_EX(dest, 1, 0)
1686 #define Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, deref, separate) \ argument
1688 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
1694 #define Z_PARAM_ARRAY_OR_OBJECT_EX(dest, check_null, separate) \ argument
1695 Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, separate, separate)
1697 #define Z_PARAM_ARRAY_OR_OBJECT(dest) \ argument
1698 Z_PARAM_ARRAY_OR_OBJECT_EX(dest, 0, 0)
1700 #define Z_PARAM_ITERABLE_EX(dest, check_null) \ argument
1702 if (UNEXPECTED(!zend_parse_arg_iterable(_arg, &dest, check_null))) { \
1708 #define Z_PARAM_ITERABLE(dest) \ argument
1709 Z_PARAM_ITERABLE_EX(dest, 0)
1711 #define Z_PARAM_ITERABLE_OR_NULL(dest) \ argument
1712 Z_PARAM_ITERABLE_EX(dest, 1)
1715 #define Z_PARAM_BOOL_EX(dest, is_null, check_null, deref) \ argument
1717 if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null, _i))) { \
1723 #define Z_PARAM_BOOL(dest) \ argument
1724 Z_PARAM_BOOL_EX(dest, _dummy, 0, 0)
1726 #define Z_PARAM_BOOL_OR_NULL(dest, is_null) \ argument
1727 Z_PARAM_BOOL_EX(dest, is_null, 1, 0)
1730 #define Z_PARAM_CLASS_EX(dest, check_null, deref) \ argument
1732 if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
1737 #define Z_PARAM_CLASS(dest) \ argument
1738 Z_PARAM_CLASS_EX(dest, 0, 0)
1740 #define Z_PARAM_CLASS_OR_NULL(dest) \ argument
1741 Z_PARAM_CLASS_EX(dest, 1, 0)
1743 #define Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, allow_null) \ argument
1745 if (UNEXPECTED(!zend_parse_arg_obj_or_class_name(_arg, &dest, allow_null))) { \
1751 #define Z_PARAM_OBJ_OR_CLASS_NAME(dest) \ argument
1752 Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, 0);
1754 #define Z_PARAM_OBJ_OR_CLASS_NAME_OR_NULL(dest) \ argument
1755 Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, 1);
1792 #define Z_PARAM_DOUBLE_EX(dest, is_null, check_null, deref) \ argument
1794 if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null, _i))) { \
1800 #define Z_PARAM_DOUBLE(dest) \ argument
1801 Z_PARAM_DOUBLE_EX(dest, _dummy, 0, 0)
1803 #define Z_PARAM_DOUBLE_OR_NULL(dest, is_null) \ argument
1804 Z_PARAM_DOUBLE_EX(dest, is_null, 1, 0)
1838 #define Z_PARAM_ARRAY_HT_EX2(dest, check_null, deref, separate) \ argument
1840 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0, separate))) { \
1846 #define Z_PARAM_ARRAY_HT_EX(dest, check_null, separate) \ argument
1847 Z_PARAM_ARRAY_HT_EX2(dest, check_null, separate, separate)
1849 #define Z_PARAM_ARRAY_HT(dest) \ argument
1850 Z_PARAM_ARRAY_HT_EX(dest, 0, 0)
1852 #define Z_PARAM_ARRAY_HT_OR_NULL(dest) \ argument
1853 Z_PARAM_ARRAY_HT_EX(dest, 1, 0)
1870 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, deref, separate) \ argument
1872 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1, separate))) { \
1878 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, check_null, separate) \ argument
1879 Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, separate, separate)
1881 #define Z_PARAM_ARRAY_OR_OBJECT_HT(dest) \ argument
1882 Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, 0, 0)
1885 #define Z_PARAM_LONG_EX(dest, is_null, check_null, deref) \ argument
1887 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, _i))) { \
1893 #define Z_PARAM_LONG(dest) \ argument
1894 Z_PARAM_LONG_EX(dest, _dummy, 0, 0)
1896 #define Z_PARAM_LONG_OR_NULL(dest, is_null) \ argument
1897 Z_PARAM_LONG_EX(dest, is_null, 1, 0)
1900 #define Z_PARAM_NUMBER_EX(dest, check_null) \ argument
1902 if (UNEXPECTED(!zend_parse_arg_number(_arg, &dest, check_null, _i))) { \
1908 #define Z_PARAM_NUMBER_OR_NULL(dest) \ argument
1909 Z_PARAM_NUMBER_EX(dest, 1)
1911 #define Z_PARAM_NUMBER(dest) \ argument
1912 Z_PARAM_NUMBER_EX(dest, 0)
1914 #define Z_PARAM_NUMBER_OR_STR_EX(dest, check_null) \ argument
1916 if (UNEXPECTED(!zend_parse_arg_number_or_str(_arg, &dest, check_null, _i))) { \
1922 #define Z_PARAM_NUMBER_OR_STR(dest) \ argument
1923 Z_PARAM_NUMBER_OR_STR_EX(dest, false)
1925 #define Z_PARAM_NUMBER_OR_STR_OR_NULL(dest) \ argument
1926 Z_PARAM_NUMBER_OR_STR_EX(dest, true)
1929 #define Z_PARAM_OBJECT_EX(dest, check_null, deref) \ argument
1931 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
1937 #define Z_PARAM_OBJECT(dest) \ argument
1938 Z_PARAM_OBJECT_EX(dest, 0, 0)
1940 #define Z_PARAM_OBJECT_OR_NULL(dest) \ argument
1941 Z_PARAM_OBJECT_EX(dest, 1, 0)
1944 #define Z_PARAM_OBJ_EX(dest, check_null, deref) \ argument
1946 if (UNEXPECTED(!zend_parse_arg_obj(_arg, &dest, NULL, check_null))) { \
1952 #define Z_PARAM_OBJ(dest) \ argument
1953 Z_PARAM_OBJ_EX(dest, 0, 0)
1955 #define Z_PARAM_OBJ_OR_NULL(dest) \ argument
1956 Z_PARAM_OBJ_EX(dest, 1, 0)
1959 #define Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, check_null, deref) \ argument
1961 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
1973 #define Z_PARAM_OBJECT_OF_CLASS(dest, _ce) \ argument
1974 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 0, 0)
1976 #define Z_PARAM_OBJECT_OF_CLASS_OR_NULL(dest, _ce) \ argument
1977 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 1, 0)
1980 #define Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, check_null, deref) \ argument
1982 if (UNEXPECTED(!zend_parse_arg_obj(_arg, &dest, _ce, check_null))) { \
1994 #define Z_PARAM_OBJ_OF_CLASS(dest, _ce) \ argument
1995 Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, 0, 0)
1997 #define Z_PARAM_OBJ_OF_CLASS_OR_NULL(dest, _ce) \ argument
1998 Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, 1, 0)
2015 #define Z_PARAM_PATH_EX(dest, dest_len, check_null, deref) \ argument
2017 if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null, _i))) { \
2023 #define Z_PARAM_PATH(dest, dest_len) \ argument
2024 Z_PARAM_PATH_EX(dest, dest_len, 0, 0)
2026 #define Z_PARAM_PATH_OR_NULL(dest, dest_len) \ argument
2027 Z_PARAM_PATH_EX(dest, dest_len, 1, 0)
2030 #define Z_PARAM_PATH_STR_EX(dest, check_null, deref) \ argument
2032 if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null, _i))) { \
2038 #define Z_PARAM_PATH_STR(dest) \ argument
2039 Z_PARAM_PATH_STR_EX(dest, 0, 0)
2041 #define Z_PARAM_PATH_STR_OR_NULL(dest) \ argument
2042 Z_PARAM_PATH_STR_EX(dest, 1, 0)
2045 #define Z_PARAM_RESOURCE_EX(dest, check_null, deref) \ argument
2047 if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
2053 #define Z_PARAM_RESOURCE(dest) \ argument
2054 Z_PARAM_RESOURCE_EX(dest, 0, 0)
2056 #define Z_PARAM_RESOURCE_OR_NULL(dest) \ argument
2057 Z_PARAM_RESOURCE_EX(dest, 1, 0)
2060 #define Z_PARAM_STRING_EX(dest, dest_len, check_null, deref) \ argument
2062 if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null, _i))) { \
2068 #define Z_PARAM_STRING(dest, dest_len) \ argument
2069 Z_PARAM_STRING_EX(dest, dest_len, 0, 0)
2071 #define Z_PARAM_STRING_OR_NULL(dest, dest_len) \ argument
2072 Z_PARAM_STRING_EX(dest, dest_len, 1, 0)
2075 #define Z_PARAM_STR_EX(dest, check_null, deref) \ argument
2077 if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null, _i))) { \
2083 #define Z_PARAM_STR(dest) \ argument
2084 Z_PARAM_STR_EX(dest, 0, 0)
2086 #define Z_PARAM_STR_OR_NULL(dest) \ argument
2087 Z_PARAM_STR_EX(dest, 1, 0)
2090 #define Z_PARAM_ZVAL_EX2(dest, check_null, deref, separate) \ argument
2092 zend_parse_arg_zval_deref(_arg, &dest, check_null);
2094 #define Z_PARAM_ZVAL_EX(dest, check_null, separate) \ argument
2095 Z_PARAM_ZVAL_EX2(dest, check_null, separate, separate)
2097 #define Z_PARAM_ZVAL(dest) \ argument
2098 Z_PARAM_ZVAL_EX(dest, 0, 0)
2100 #define Z_PARAM_ZVAL_OR_NULL(dest) \ argument
2101 Z_PARAM_ZVAL_EX(dest, 1, 0)
2104 #define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \ argument
2107 dest = _real_arg + 1; \
2112 dest = NULL; \
2121 #define Z_PARAM_VARIADIC(spec, dest, dest_num) \ argument
2122 Z_PARAM_VARIADIC_EX(spec, dest, dest_num, 0)
2124 #define Z_PARAM_VARIADIC_WITH_NAMED(dest, dest_num, dest_named) do { \ argument
2127 dest = _real_arg + 1; \
2130 dest = NULL; \
2173 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow(const zval *arg, bool *dest, uint32_t arg_num);
2174 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak(const zval *arg, bool *dest, uint32_t arg_num);
2175 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow(const zval *arg, zend_long *dest, uint32_t arg…
2176 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak(const zval *arg, zend_long *dest, uint32_t arg…
2177 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow(const zval *arg, double *dest, uint32_t arg_…
2178 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak(const zval *arg, double *dest, uint32_t arg_…
2179 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest, uint32_t arg_num…
2180 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest, uint32_t arg_num…
2181 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow(zval *arg, zval **dest, uint32_t arg_num);
2182 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_or_str_slow(zval *arg, zval **dest, uint32_t arg_…
2185 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_bool_slow(const zval *arg, bool *dest, uint32_t arg_…
2186 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_str_slow(zval *arg, zend_string **dest, uint32_t arg…
2187 ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_long_slow(const zval *arg, zend_long *dest, uint32_t…
2189 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
2195 *dest = 1; in zend_parse_arg_bool_ex()
2197 *dest = 0; in zend_parse_arg_bool_ex()
2200 *dest = 0; in zend_parse_arg_bool_ex()
2203 return zend_flf_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex()
2205 return zend_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex()
2211 static zend_always_inline bool zend_parse_arg_bool(const zval *arg, bool *dest, bool *is_null, bool… in zend_parse_arg_bool() argument
2213 return zend_parse_arg_bool_ex(arg, dest, is_null, check_null, arg_num, /* frameless */ false); in zend_parse_arg_bool()
2216 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
2222 *dest = Z_LVAL_P(arg); in zend_parse_arg_long_ex()
2225 *dest = 0; in zend_parse_arg_long_ex()
2228 return zend_flf_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex()
2230 return zend_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex()
2236 static zend_always_inline bool zend_parse_arg_long(zval *arg, zend_long *dest, bool *is_null, bool … in zend_parse_arg_long() argument
2238 return zend_parse_arg_long_ex(arg, dest, is_null, check_null, arg_num, /* frameless */ false); in zend_parse_arg_long()
2241 static zend_always_inline bool zend_parse_arg_double(const zval *arg, double *dest, bool *is_null, … in zend_parse_arg_double() argument
2247 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
2250 *dest = 0.0; in zend_parse_arg_double()
2252 return zend_parse_arg_double_slow(arg, dest, arg_num); in zend_parse_arg_double()
2257 static zend_always_inline bool zend_parse_arg_number(zval *arg, zval **dest, bool check_null, uint3… in zend_parse_arg_number() argument
2260 *dest = arg; in zend_parse_arg_number()
2262 *dest = NULL; in zend_parse_arg_number()
2264 return zend_parse_arg_number_slow(arg, dest, arg_num); in zend_parse_arg_number()
2269 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
2272 *dest = arg; in zend_parse_arg_number_or_str()
2274 *dest = NULL; in zend_parse_arg_number_or_str()
2276 return zend_parse_arg_number_or_str_slow(arg, dest, arg_num); in zend_parse_arg_number_or_str()
2281 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
2284 *dest = Z_STR_P(arg); in zend_parse_arg_str_ex()
2286 *dest = NULL; in zend_parse_arg_str_ex()
2289 return zend_flf_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex()
2291 return zend_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex()
2297 static zend_always_inline bool zend_parse_arg_str(zval *arg, zend_string **dest, bool check_null, u… in zend_parse_arg_str() argument
2299 return zend_parse_arg_str_ex(arg, dest, check_null, arg_num, /* frameless */ false); in zend_parse_arg_str()
2302 static zend_always_inline bool zend_parse_arg_string(zval *arg, char **dest, size_t *dest_len, bool… in zend_parse_arg_string() argument
2310 *dest = NULL; in zend_parse_arg_string()
2313 *dest = ZSTR_VAL(str); in zend_parse_arg_string()
2319 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
2321 if (!zend_parse_arg_str(arg, dest, check_null, arg_num) || in zend_parse_arg_path_str()
2322 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { in zend_parse_arg_path_str()
2328 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
2336 *dest = NULL; in zend_parse_arg_path()
2339 *dest = ZSTR_VAL(str); in zend_parse_arg_path()
2345 static zend_always_inline bool zend_parse_arg_iterable(zval *arg, zval **dest, bool check_null) in zend_parse_arg_iterable() argument
2348 *dest = arg; in zend_parse_arg_iterable()
2353 *dest = NULL; in zend_parse_arg_iterable()
2360 static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool check_null, bool o… in zend_parse_arg_array() argument
2364 *dest = arg; in zend_parse_arg_array()
2366 *dest = NULL; in zend_parse_arg_array()
2373 static zend_always_inline bool zend_parse_arg_array_ht(const zval *arg, HashTable **dest, bool chec… in zend_parse_arg_array_ht() argument
2376 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
2387 *dest = zobj->handlers->get_properties(zobj); in zend_parse_arg_array_ht()
2389 *dest = NULL; in zend_parse_arg_array_ht()
2419 static zend_always_inline bool zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, … in zend_parse_arg_object() argument
2423 *dest = arg; in zend_parse_arg_object()
2425 *dest = NULL; in zend_parse_arg_object()
2432 static zend_always_inline bool zend_parse_arg_obj(const zval *arg, zend_object **dest, zend_class_e… in zend_parse_arg_obj() argument
2436 *dest = Z_OBJ_P(arg); in zend_parse_arg_obj()
2438 *dest = NULL; in zend_parse_arg_obj()
2468 static zend_always_inline bool zend_parse_arg_resource(zval *arg, zval **dest, bool check_null) in zend_parse_arg_resource() argument
2471 *dest = arg; in zend_parse_arg_resource()
2473 *dest = NULL; in zend_parse_arg_resource()
2498 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval() argument
2500 *dest = (check_null && in zend_parse_arg_zval()
2506 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval_deref() argument
2508 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()