Lines Matching refs:dest
805 #define Z_PARAM_ARRAY_EX2(dest, check_null, deref, separate) \ argument
807 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
813 #define Z_PARAM_ARRAY_EX(dest, check_null, separate) \ argument
814 Z_PARAM_ARRAY_EX2(dest, check_null, separate, separate)
816 #define Z_PARAM_ARRAY(dest) \ argument
817 Z_PARAM_ARRAY_EX(dest, 0, 0)
820 #define Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, deref, separate) \ argument
822 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
828 #define Z_PARAM_ARRAY_OR_OBJECT_EX(dest, check_null, separate) \ argument
829 Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, separate, separate)
831 #define Z_PARAM_ARRAY_OR_OBJECT(dest, check_null, separate) \ argument
832 Z_PARAM_ARRAY_OR_OBJECT_EX(dest, 0, 0)
835 #define Z_PARAM_BOOL_EX2(dest, is_null, check_null, deref, separate) \ argument
837 if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null))) { \
843 #define Z_PARAM_BOOL_EX(dest, is_null, check_null, separate) \ argument
844 Z_PARAM_BOOL_EX2(dest, is_null, check_null, separate, separate)
846 #define Z_PARAM_BOOL(dest) \ argument
847 Z_PARAM_BOOL_EX(dest, _dummy, 0, 0)
850 #define Z_PARAM_CLASS_EX2(dest, check_null, deref, separate) \ argument
852 if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
857 #define Z_PARAM_CLASS_EX(dest, check_null, separate) \ argument
858 Z_PARAM_CLASS_EX2(dest, check_null, separate, separate)
860 #define Z_PARAM_CLASS(dest) \ argument
861 Z_PARAM_CLASS_EX(dest, 0, 0)
864 #define Z_PARAM_DOUBLE_EX2(dest, is_null, check_null, deref, separate) \ argument
866 if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null))) { \
872 #define Z_PARAM_DOUBLE_EX(dest, is_null, check_null, separate) \ argument
873 Z_PARAM_DOUBLE_EX2(dest, is_null, check_null, separate, separate)
875 #define Z_PARAM_DOUBLE(dest) \ argument
876 Z_PARAM_DOUBLE_EX(dest, _dummy, 0, 0)
901 #define Z_PARAM_ARRAY_HT_EX2(dest, check_null, deref, separate) \ argument
903 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0, separate))) { \
909 #define Z_PARAM_ARRAY_HT_EX(dest, check_null, separate) \ argument
910 Z_PARAM_ARRAY_HT_EX2(dest, check_null, separate, separate)
912 #define Z_PARAM_ARRAY_HT(dest) \ argument
913 Z_PARAM_ARRAY_HT_EX(dest, 0, 0)
916 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, deref, separate) \ argument
918 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1, separate))) { \
924 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, check_null, separate) \ argument
925 Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, separate, separate)
927 #define Z_PARAM_ARRAY_OR_OBJECT_HT(dest) \ argument
928 Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, 0, 0)
931 #define Z_PARAM_LONG_EX2(dest, is_null, check_null, deref, separate) \ argument
933 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 0))) { \
939 #define Z_PARAM_LONG_EX(dest, is_null, check_null, separate) \ argument
940 Z_PARAM_LONG_EX2(dest, is_null, check_null, separate, separate)
942 #define Z_PARAM_LONG(dest) \ argument
943 Z_PARAM_LONG_EX(dest, _dummy, 0, 0)
946 #define Z_PARAM_STRICT_LONG_EX2(dest, is_null, check_null, deref, separate) \ argument
948 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 1))) { \
954 #define Z_PARAM_STRICT_LONG_EX(dest, is_null, check_null, separate) \ argument
955 Z_PARAM_STRICT_LONG_EX2(dest, is_null, check_null, separate, separate)
957 #define Z_PARAM_STRICT_LONG(dest) \ argument
958 Z_PARAM_STRICT_LONG_EX(dest, _dummy, 0, 0)
961 #define Z_PARAM_OBJECT_EX2(dest, check_null, deref, separate) \ argument
963 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
969 #define Z_PARAM_OBJECT_EX(dest, check_null, separate) \ argument
970 Z_PARAM_OBJECT_EX2(dest, check_null, separate, separate)
972 #define Z_PARAM_OBJECT(dest) \ argument
973 Z_PARAM_OBJECT_EX(dest, 0, 0)
976 #define Z_PARAM_OBJECT_OF_CLASS_EX2(dest, _ce, check_null, deref, separate) \ argument
978 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
990 #define Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, check_null, separate) \ argument
991 Z_PARAM_OBJECT_OF_CLASS_EX2(dest, _ce, check_null, separate, separate)
993 #define Z_PARAM_OBJECT_OF_CLASS(dest, _ce) \ argument
994 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 0, 0)
997 #define Z_PARAM_PATH_EX2(dest, dest_len, check_null, deref, separate) \ argument
999 if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null))) { \
1005 #define Z_PARAM_PATH_EX(dest, dest_len, check_null, separate) \ argument
1006 Z_PARAM_PATH_EX2(dest, dest_len, check_null, separate, separate)
1008 #define Z_PARAM_PATH(dest, dest_len) \ argument
1009 Z_PARAM_PATH_EX(dest, dest_len, 0, 0)
1012 #define Z_PARAM_PATH_STR_EX2(dest, check_null, deref, separate) \ argument
1014 if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null))) { \
1020 #define Z_PARAM_PATH_STR_EX(dest, check_null, separate) \ argument
1021 Z_PARAM_PATH_STR_EX2(dest, check_null, separate, separate)
1023 #define Z_PARAM_PATH_STR(dest) \ argument
1024 Z_PARAM_PATH_STR_EX(dest, 0, 0)
1027 #define Z_PARAM_RESOURCE_EX2(dest, check_null, deref, separate) \ argument
1029 if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
1035 #define Z_PARAM_RESOURCE_EX(dest, check_null, separate) \ argument
1036 Z_PARAM_RESOURCE_EX2(dest, check_null, separate, separate)
1038 #define Z_PARAM_RESOURCE(dest) \ argument
1039 Z_PARAM_RESOURCE_EX(dest, 0, 0)
1042 #define Z_PARAM_STRING_EX2(dest, dest_len, check_null, deref, separate) \ argument
1044 if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null))) { \
1050 #define Z_PARAM_STRING_EX(dest, dest_len, check_null, separate) \ argument
1051 Z_PARAM_STRING_EX2(dest, dest_len, check_null, separate, separate)
1053 #define Z_PARAM_STRING(dest, dest_len) \ argument
1054 Z_PARAM_STRING_EX(dest, dest_len, 0, 0)
1057 #define Z_PARAM_STR_EX2(dest, check_null, deref, separate) \ argument
1059 if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null))) { \
1065 #define Z_PARAM_STR_EX(dest, check_null, separate) \ argument
1066 Z_PARAM_STR_EX2(dest, check_null, separate, separate)
1068 #define Z_PARAM_STR(dest) \ argument
1069 Z_PARAM_STR_EX(dest, 0, 0)
1072 #define Z_PARAM_ZVAL_EX2(dest, check_null, deref, separate) \ argument
1074 zend_parse_arg_zval_deref(_arg, &dest, check_null);
1076 #define Z_PARAM_ZVAL_EX(dest, check_null, separate) \ argument
1077 Z_PARAM_ZVAL_EX2(dest, check_null, separate, separate)
1079 #define Z_PARAM_ZVAL(dest) \ argument
1080 Z_PARAM_ZVAL_EX(dest, 0, 0)
1083 #define Z_PARAM_ZVAL_DEREF_EX(dest, check_null, separate) \ argument
1085 zend_parse_arg_zval_deref(_arg, &dest, check_null);
1087 #define Z_PARAM_ZVAL_DEREF(dest) \ argument
1088 Z_PARAM_ZVAL_DEREF_EX(dest, 0, 0)
1091 #define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \ argument
1094 dest = _real_arg + 1; \
1099 dest = NULL; \
1104 #define Z_PARAM_VARIADIC(spec, dest, dest_num) \ argument
1105 Z_PARAM_VARIADIC_EX(spec, dest, dest_num, 0)
1112 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1113 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1114 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1115 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1116 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_slow(zval *arg, zend_long *dest);
1117 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_weak(zval *arg, zend_long *dest);
1118 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1119 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1120 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1121 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1123 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
1129 *dest = 1; in zend_parse_arg_bool()
1131 *dest = 0; in zend_parse_arg_bool()
1134 *dest = 0; in zend_parse_arg_bool()
1136 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1141 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
1147 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1150 *dest = 0; in zend_parse_arg_long()
1152 return zend_parse_arg_long_cap_slow(arg, dest); in zend_parse_arg_long()
1154 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1159 static zend_always_inline int zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, in… in zend_parse_arg_double() argument
1165 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1168 *dest = 0.0; in zend_parse_arg_double()
1170 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1175 static zend_always_inline int zend_parse_arg_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_str() argument
1178 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1180 *dest = NULL; in zend_parse_arg_str()
1182 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1187 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
1195 *dest = NULL; in zend_parse_arg_string()
1198 *dest = ZSTR_VAL(str); in zend_parse_arg_string()
1204 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
1206 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1207 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { in zend_parse_arg_path_str()
1213 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
1221 *dest = NULL; in zend_parse_arg_path()
1224 *dest = ZSTR_VAL(str); in zend_parse_arg_path()
1230 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
1234 *dest = arg; in zend_parse_arg_array()
1236 *dest = NULL; in zend_parse_arg_array()
1243 static zend_always_inline int zend_parse_arg_array_ht(zval *arg, HashTable **dest, int check_null, … in zend_parse_arg_array_ht() argument
1246 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
1256 *dest = Z_OBJ_HT_P(arg)->get_properties(arg); in zend_parse_arg_array_ht()
1258 *dest = NULL; in zend_parse_arg_array_ht()
1265 static zend_always_inline int zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, i… in zend_parse_arg_object() argument
1269 *dest = arg; in zend_parse_arg_object()
1271 *dest = NULL; in zend_parse_arg_object()
1278 static zend_always_inline int zend_parse_arg_resource(zval *arg, zval **dest, int check_null) in zend_parse_arg_resource() argument
1281 *dest = arg; in zend_parse_arg_resource()
1283 *dest = NULL; in zend_parse_arg_resource()
1302 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval() argument
1304 *dest = (check_null && in zend_parse_arg_zval()
1310 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval_deref() argument
1312 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()