Lines Matching refs:dest

1548 #define Z_PARAM_GET_PREV_ZVAL(dest) \  argument
1549 zend_parse_arg_zval_deref(_arg, &dest, 0);
1556 #define Z_PARAM_ARRAY_EX2(dest, check_null, deref, separate) \ argument
1558 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
1564 #define Z_PARAM_ARRAY_EX(dest, check_null, separate) \ argument
1565 Z_PARAM_ARRAY_EX2(dest, check_null, separate, separate)
1567 #define Z_PARAM_ARRAY(dest) \ argument
1568 Z_PARAM_ARRAY_EX(dest, 0, 0)
1570 #define Z_PARAM_ARRAY_OR_NULL(dest) \ argument
1571 Z_PARAM_ARRAY_EX(dest, 1, 0)
1574 #define Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, deref, separate) \ argument
1576 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
1582 #define Z_PARAM_ARRAY_OR_OBJECT_EX(dest, check_null, separate) \ argument
1583 Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, separate, separate)
1585 #define Z_PARAM_ARRAY_OR_OBJECT(dest) \ argument
1586 Z_PARAM_ARRAY_OR_OBJECT_EX(dest, 0, 0)
1588 #define Z_PARAM_ITERABLE_EX(dest, check_null) \ argument
1590 if (UNEXPECTED(!zend_parse_arg_iterable(_arg, &dest, check_null))) { \
1596 #define Z_PARAM_ITERABLE(dest) \ argument
1597 Z_PARAM_ITERABLE_EX(dest, 0)
1599 #define Z_PARAM_ITERABLE_OR_NULL(dest) \ argument
1600 Z_PARAM_ITERABLE_EX(dest, 1)
1603 #define Z_PARAM_BOOL_EX(dest, is_null, check_null, deref) \ argument
1605 if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null, _i))) { \
1611 #define Z_PARAM_BOOL(dest) \ argument
1612 Z_PARAM_BOOL_EX(dest, _dummy, 0, 0)
1614 #define Z_PARAM_BOOL_OR_NULL(dest, is_null) \ argument
1615 Z_PARAM_BOOL_EX(dest, is_null, 1, 0)
1618 #define Z_PARAM_CLASS_EX(dest, check_null, deref) \ argument
1620 if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
1625 #define Z_PARAM_CLASS(dest) \ argument
1626 Z_PARAM_CLASS_EX(dest, 0, 0)
1628 #define Z_PARAM_CLASS_OR_NULL(dest) \ argument
1629 Z_PARAM_CLASS_EX(dest, 1, 0)
1631 #define Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, allow_null) \ argument
1633 if (UNEXPECTED(!zend_parse_arg_obj_or_class_name(_arg, &dest, allow_null))) { \
1639 #define Z_PARAM_OBJ_OR_CLASS_NAME(dest) \ argument
1640 Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, 0);
1642 #define Z_PARAM_OBJ_OR_CLASS_NAME_OR_NULL(dest) \ argument
1643 Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, 1);
1680 #define Z_PARAM_DOUBLE_EX(dest, is_null, check_null, deref) \ argument
1682 if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null, _i))) { \
1688 #define Z_PARAM_DOUBLE(dest) \ argument
1689 Z_PARAM_DOUBLE_EX(dest, _dummy, 0, 0)
1691 #define Z_PARAM_DOUBLE_OR_NULL(dest, is_null) \ argument
1692 Z_PARAM_DOUBLE_EX(dest, is_null, 1, 0)
1718 #define Z_PARAM_ARRAY_HT_EX2(dest, check_null, deref, separate) \ argument
1720 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0, separate))) { \
1726 #define Z_PARAM_ARRAY_HT_EX(dest, check_null, separate) \ argument
1727 Z_PARAM_ARRAY_HT_EX2(dest, check_null, separate, separate)
1729 #define Z_PARAM_ARRAY_HT(dest) \ argument
1730 Z_PARAM_ARRAY_HT_EX(dest, 0, 0)
1732 #define Z_PARAM_ARRAY_HT_OR_NULL(dest) \ argument
1733 Z_PARAM_ARRAY_HT_EX(dest, 1, 0)
1750 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, deref, separate) \ argument
1752 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1, separate))) { \
1758 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, check_null, separate) \ argument
1759 Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, separate, separate)
1761 #define Z_PARAM_ARRAY_OR_OBJECT_HT(dest) \ argument
1762 Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, 0, 0)
1765 #define Z_PARAM_LONG_EX(dest, is_null, check_null, deref) \ argument
1767 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, _i))) { \
1773 #define Z_PARAM_LONG(dest) \ argument
1774 Z_PARAM_LONG_EX(dest, _dummy, 0, 0)
1776 #define Z_PARAM_LONG_OR_NULL(dest, is_null) \ argument
1777 Z_PARAM_LONG_EX(dest, is_null, 1, 0)
1780 #define Z_PARAM_NUMBER_EX(dest, check_null) \ argument
1782 if (UNEXPECTED(!zend_parse_arg_number(_arg, &dest, check_null, _i))) { \
1788 #define Z_PARAM_NUMBER_OR_NULL(dest) \ argument
1789 Z_PARAM_NUMBER_EX(dest, 1)
1791 #define Z_PARAM_NUMBER(dest) \ argument
1792 Z_PARAM_NUMBER_EX(dest, 0)
1795 #define Z_PARAM_OBJECT_EX(dest, check_null, deref) \ argument
1797 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
1803 #define Z_PARAM_OBJECT(dest) \ argument
1804 Z_PARAM_OBJECT_EX(dest, 0, 0)
1806 #define Z_PARAM_OBJECT_OR_NULL(dest) \ argument
1807 Z_PARAM_OBJECT_EX(dest, 1, 0)
1810 #define Z_PARAM_OBJ_EX(dest, check_null, deref) \ argument
1812 if (UNEXPECTED(!zend_parse_arg_obj(_arg, &dest, NULL, check_null))) { \
1818 #define Z_PARAM_OBJ(dest) \ argument
1819 Z_PARAM_OBJ_EX(dest, 0, 0)
1821 #define Z_PARAM_OBJ_OR_NULL(dest) \ argument
1822 Z_PARAM_OBJ_EX(dest, 1, 0)
1825 #define Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, check_null, deref) \ argument
1827 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
1839 #define Z_PARAM_OBJECT_OF_CLASS(dest, _ce) \ argument
1840 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 0, 0)
1842 #define Z_PARAM_OBJECT_OF_CLASS_OR_NULL(dest, _ce) \ argument
1843 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 1, 0)
1846 #define Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, check_null, deref) \ argument
1848 if (UNEXPECTED(!zend_parse_arg_obj(_arg, &dest, _ce, check_null))) { \
1860 #define Z_PARAM_OBJ_OF_CLASS(dest, _ce) \ argument
1861 Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, 0, 0)
1863 #define Z_PARAM_OBJ_OF_CLASS_OR_NULL(dest, _ce) \ argument
1864 Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, 1, 0)
1881 #define Z_PARAM_PATH_EX(dest, dest_len, check_null, deref) \ argument
1883 if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null, _i))) { \
1889 #define Z_PARAM_PATH(dest, dest_len) \ argument
1890 Z_PARAM_PATH_EX(dest, dest_len, 0, 0)
1892 #define Z_PARAM_PATH_OR_NULL(dest, dest_len) \ argument
1893 Z_PARAM_PATH_EX(dest, dest_len, 1, 0)
1896 #define Z_PARAM_PATH_STR_EX(dest, check_null, deref) \ argument
1898 if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null, _i))) { \
1904 #define Z_PARAM_PATH_STR(dest) \ argument
1905 Z_PARAM_PATH_STR_EX(dest, 0, 0)
1907 #define Z_PARAM_PATH_STR_OR_NULL(dest) \ argument
1908 Z_PARAM_PATH_STR_EX(dest, 1, 0)
1911 #define Z_PARAM_RESOURCE_EX(dest, check_null, deref) \ argument
1913 if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
1919 #define Z_PARAM_RESOURCE(dest) \ argument
1920 Z_PARAM_RESOURCE_EX(dest, 0, 0)
1922 #define Z_PARAM_RESOURCE_OR_NULL(dest) \ argument
1923 Z_PARAM_RESOURCE_EX(dest, 1, 0)
1926 #define Z_PARAM_STRING_EX(dest, dest_len, check_null, deref) \ argument
1928 if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null, _i))) { \
1934 #define Z_PARAM_STRING(dest, dest_len) \ argument
1935 Z_PARAM_STRING_EX(dest, dest_len, 0, 0)
1937 #define Z_PARAM_STRING_OR_NULL(dest, dest_len) \ argument
1938 Z_PARAM_STRING_EX(dest, dest_len, 1, 0)
1941 #define Z_PARAM_STR_EX(dest, check_null, deref) \ argument
1943 if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null, _i))) { \
1949 #define Z_PARAM_STR(dest) \ argument
1950 Z_PARAM_STR_EX(dest, 0, 0)
1952 #define Z_PARAM_STR_OR_NULL(dest) \ argument
1953 Z_PARAM_STR_EX(dest, 1, 0)
1956 #define Z_PARAM_ZVAL_EX2(dest, check_null, deref, separate) \ argument
1958 zend_parse_arg_zval_deref(_arg, &dest, check_null);
1960 #define Z_PARAM_ZVAL_EX(dest, check_null, separate) \ argument
1961 Z_PARAM_ZVAL_EX2(dest, check_null, separate, separate)
1963 #define Z_PARAM_ZVAL(dest) \ argument
1964 Z_PARAM_ZVAL_EX(dest, 0, 0)
1966 #define Z_PARAM_ZVAL_OR_NULL(dest) \ argument
1967 Z_PARAM_ZVAL_EX(dest, 1, 0)
1970 #define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \ argument
1973 dest = _real_arg + 1; \
1978 dest = NULL; \
1987 #define Z_PARAM_VARIADIC(spec, dest, dest_num) \ argument
1988 Z_PARAM_VARIADIC_EX(spec, dest, dest_num, 0)
1990 #define Z_PARAM_VARIADIC_WITH_NAMED(dest, dest_num, dest_named) do { \ argument
1993 dest = _real_arg + 1; \
1996 dest = NULL; \
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);
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
2056 *dest = 1; in zend_parse_arg_bool()
2058 *dest = 0; in zend_parse_arg_bool()
2061 *dest = 0; 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
2074 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
2077 *dest = 0; 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
2090 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
2093 *dest = 0.0; 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
2103 *dest = arg; in zend_parse_arg_number()
2105 *dest = 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
2115 *dest = Z_STR_P(arg); in zend_parse_arg_str()
2117 *dest = 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
2132 *dest = NULL; in zend_parse_arg_string()
2135 *dest = ZSTR_VAL(str); 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()
2144 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { 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
2158 *dest = NULL; in zend_parse_arg_path()
2161 *dest = ZSTR_VAL(str); 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
2170 *dest = arg; in zend_parse_arg_iterable()
2175 *dest = 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
2186 *dest = arg; in zend_parse_arg_array()
2188 *dest = 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
2198 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
2209 *dest = zobj->handlers->get_properties(zobj); in zend_parse_arg_array_ht()
2211 *dest = NULL; in zend_parse_arg_array_ht()
2241 static zend_always_inline bool zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, … in zend_parse_arg_object() argument
2245 *dest = arg; in zend_parse_arg_object()
2247 *dest = 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
2258 *dest = Z_OBJ_P(arg); in zend_parse_arg_obj()
2260 *dest = NULL; in zend_parse_arg_obj()
2290 static zend_always_inline bool zend_parse_arg_resource(zval *arg, zval **dest, bool check_null) in zend_parse_arg_resource() argument
2293 *dest = arg; in zend_parse_arg_resource()
2295 *dest = NULL; in zend_parse_arg_resource()
2318 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval() argument
2320 *dest = (check_null && 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()