Lines Matching refs:dest
790 #define Z_PARAM_ARRAY_EX(dest, check_null, separate) \ argument
792 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
798 #define Z_PARAM_ARRAY(dest) \ argument
799 Z_PARAM_ARRAY_EX(dest, 0, 0)
802 #define Z_PARAM_ARRAY_OR_OBJECT_EX(dest, check_null, separate) \ argument
804 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
810 #define Z_PARAM_ARRAY_OR_OBJECT(dest, check_null, separate) \ argument
811 Z_PARAM_ARRAY_OR_OBJECT_EX(dest, 0, 0)
814 #define Z_PARAM_BOOL_EX(dest, is_null, check_null, separate) \ argument
816 if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null))) { \
822 #define Z_PARAM_BOOL(dest) \ argument
823 Z_PARAM_BOOL_EX(dest, _dummy, 0, 0)
826 #define Z_PARAM_CLASS_EX(dest, check_null, separate) \ argument
828 if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
833 #define Z_PARAM_CLASS(dest) \ argument
834 Z_PARAM_CLASS_EX(dest, 0, 0)
837 #define Z_PARAM_DOUBLE_EX(dest, is_null, check_null, separate) \ argument
839 if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null))) { \
845 #define Z_PARAM_DOUBLE(dest) \ argument
846 Z_PARAM_DOUBLE_EX(dest, _dummy, 0, 0)
868 #define Z_PARAM_ARRAY_HT_EX(dest, check_null, separate) \ argument
870 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0, separate))) { \
876 #define Z_PARAM_ARRAY_HT(dest) \ argument
877 Z_PARAM_ARRAY_HT_EX(dest, 0, 0)
880 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, check_null, separate) \ argument
882 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1, separate))) { \
888 #define Z_PARAM_ARRAY_OR_OBJECT_HT(dest) \ argument
889 Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, 0, 0)
892 #define Z_PARAM_LONG_EX(dest, is_null, check_null, separate) \ argument
894 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 0))) { \
900 #define Z_PARAM_LONG(dest) \ argument
901 Z_PARAM_LONG_EX(dest, _dummy, 0, 0)
904 #define Z_PARAM_STRICT_LONG_EX(dest, is_null, check_null, separate) \ argument
906 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 1))) { \
912 #define Z_PARAM_STRICT_LONG(dest) \ argument
913 Z_PARAM_STRICT_LONG_EX(dest, _dummy, 0, 0)
916 #define Z_PARAM_OBJECT_EX(dest, check_null, separate) \ argument
918 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
924 #define Z_PARAM_OBJECT(dest) \ argument
925 Z_PARAM_OBJECT_EX(dest, 0, 0)
928 #define Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, check_null, separate) \ argument
930 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
942 #define Z_PARAM_OBJECT_OF_CLASS(dest, _ce) \ argument
943 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 0, 0)
946 #define Z_PARAM_PATH_EX(dest, dest_len, check_null, separate) \ argument
948 if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null))) { \
954 #define Z_PARAM_PATH(dest, dest_len) \ argument
955 Z_PARAM_PATH_EX(dest, dest_len, 0, 0)
958 #define Z_PARAM_PATH_STR_EX(dest, check_null, separate) \ argument
960 if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null))) { \
966 #define Z_PARAM_PATH_STR(dest) \ argument
967 Z_PARAM_PATH_STR_EX(dest, 0, 0)
970 #define Z_PARAM_RESOURCE_EX(dest, check_null, separate) \ argument
972 if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
978 #define Z_PARAM_RESOURCE(dest) \ argument
979 Z_PARAM_RESOURCE_EX(dest, 0, 0)
982 #define Z_PARAM_STRING_EX(dest, dest_len, check_null, separate) \ argument
984 if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null))) { \
990 #define Z_PARAM_STRING(dest, dest_len) \ argument
991 Z_PARAM_STRING_EX(dest, dest_len, 0, 0)
994 #define Z_PARAM_STR_EX(dest, check_null, separate) \ argument
996 if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null))) { \
1002 #define Z_PARAM_STR(dest) \ argument
1003 Z_PARAM_STR_EX(dest, 0, 0)
1006 #define Z_PARAM_ZVAL_EX(dest, check_null, separate) \ argument
1009 zend_parse_arg_zval_deref(_arg, &dest, check_null); \
1016 zend_parse_arg_zval(_real_arg, &dest, check_null); \
1019 #define Z_PARAM_ZVAL(dest) \ argument
1020 Z_PARAM_ZVAL_EX(dest, 0, 0)
1023 #define Z_PARAM_ZVAL_DEREF_EX(dest, check_null, separate) \ argument
1025 zend_parse_arg_zval_deref(_arg, &dest, check_null);
1027 #define Z_PARAM_ZVAL_DEREF(dest) \ argument
1028 Z_PARAM_ZVAL_DEREF_EX(dest, 0, 0)
1031 #define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \ argument
1034 dest = _real_arg + 1; \
1039 dest = NULL; \
1044 #define Z_PARAM_VARIADIC(spec, dest, dest_num) \ argument
1045 Z_PARAM_VARIADIC_EX(spec, dest, dest_num, 0)
1052 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1053 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1054 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1055 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1056 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_slow(zval *arg, zend_long *dest);
1057 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_weak(zval *arg, zend_long *dest);
1058 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1059 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1060 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1061 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1063 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
1069 *dest = 1; in zend_parse_arg_bool()
1071 *dest = 0; in zend_parse_arg_bool()
1074 *dest = 0; in zend_parse_arg_bool()
1076 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1081 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
1087 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1090 *dest = 0; in zend_parse_arg_long()
1092 return zend_parse_arg_long_cap_slow(arg, dest); in zend_parse_arg_long()
1094 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1099 static zend_always_inline int zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, in… in zend_parse_arg_double() argument
1105 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1108 *dest = 0.0; in zend_parse_arg_double()
1110 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1115 static zend_always_inline int zend_parse_arg_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_str() argument
1118 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1120 *dest = NULL; in zend_parse_arg_str()
1122 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1127 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
1135 *dest = NULL; in zend_parse_arg_string()
1138 *dest = ZSTR_VAL(str); in zend_parse_arg_string()
1144 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
1146 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1147 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { in zend_parse_arg_path_str()
1153 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
1161 *dest = NULL; in zend_parse_arg_path()
1164 *dest = ZSTR_VAL(str); in zend_parse_arg_path()
1170 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
1174 *dest = arg; in zend_parse_arg_array()
1176 *dest = NULL; in zend_parse_arg_array()
1183 static zend_always_inline int zend_parse_arg_array_ht(zval *arg, HashTable **dest, int check_null, … in zend_parse_arg_array_ht() argument
1186 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
1196 *dest = Z_OBJ_HT_P(arg)->get_properties(arg); in zend_parse_arg_array_ht()
1198 *dest = NULL; in zend_parse_arg_array_ht()
1205 static zend_always_inline int zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, i… in zend_parse_arg_object() argument
1209 *dest = arg; in zend_parse_arg_object()
1211 *dest = NULL; in zend_parse_arg_object()
1218 static zend_always_inline int zend_parse_arg_resource(zval *arg, zval **dest, int check_null) in zend_parse_arg_resource() argument
1221 *dest = arg; in zend_parse_arg_resource()
1223 *dest = NULL; in zend_parse_arg_resource()
1242 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval() argument
1244 *dest = (check_null && in zend_parse_arg_zval()
1250 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval_deref() argument
1252 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()