Lines Matching refs:dest
779 #define Z_PARAM_ARRAY_EX(dest, check_null, separate) \ argument
781 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
787 #define Z_PARAM_ARRAY(dest) \ argument
788 Z_PARAM_ARRAY_EX(dest, 0, 0)
791 #define Z_PARAM_ARRAY_OR_OBJECT_EX(dest, check_null, separate) \ argument
793 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
799 #define Z_PARAM_ARRAY_OR_OBJECT(dest, check_null, separate) \ argument
800 Z_PARAM_ARRAY_OR_OBJECT_EX(dest, 0, 0)
803 #define Z_PARAM_BOOL_EX(dest, is_null, check_null, separate) \ argument
805 if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null))) { \
811 #define Z_PARAM_BOOL(dest) \ argument
812 Z_PARAM_BOOL_EX(dest, _dummy, 0, 0)
815 #define Z_PARAM_CLASS_EX(dest, check_null, separate) \ argument
817 if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
822 #define Z_PARAM_CLASS(dest) \ argument
823 Z_PARAM_CLASS_EX(dest, 0, 0)
826 #define Z_PARAM_DOUBLE_EX(dest, is_null, check_null, separate) \ argument
828 if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null))) { \
834 #define Z_PARAM_DOUBLE(dest) \ argument
835 Z_PARAM_DOUBLE_EX(dest, _dummy, 0, 0)
857 #define Z_PARAM_ARRAY_HT_EX(dest, check_null, separate) \ argument
859 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0))) { \
865 #define Z_PARAM_ARRAY_HT(dest) \ argument
866 Z_PARAM_ARRAY_HT_EX(dest, 0, 0)
869 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, check_null, separate) \ argument
871 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1))) { \
877 #define Z_PARAM_ARRAY_OR_OBJECT_HT(dest) \ argument
878 Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, 0, 0)
881 #define Z_PARAM_LONG_EX(dest, is_null, check_null, separate) \ argument
883 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 0))) { \
889 #define Z_PARAM_LONG(dest) \ argument
890 Z_PARAM_LONG_EX(dest, _dummy, 0, 0)
893 #define Z_PARAM_STRICT_LONG_EX(dest, is_null, check_null, separate) \ argument
895 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 1))) { \
901 #define Z_PARAM_STRICT_LONG(dest) \ argument
902 Z_PARAM_STRICT_LONG_EX(dest, _dummy, 0, 0)
905 #define Z_PARAM_OBJECT_EX(dest, check_null, separate) \ argument
907 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
913 #define Z_PARAM_OBJECT(dest) \ argument
914 Z_PARAM_OBJECT_EX(dest, 0, 0)
917 #define Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, check_null, separate) \ argument
919 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
931 #define Z_PARAM_OBJECT_OF_CLASS(dest, _ce) \ argument
932 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 0, 0)
935 #define Z_PARAM_PATH_EX(dest, dest_len, check_null, separate) \ argument
937 if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null))) { \
943 #define Z_PARAM_PATH(dest, dest_len) \ argument
944 Z_PARAM_PATH_EX(dest, dest_len, 0, 0)
947 #define Z_PARAM_PATH_STR_EX(dest, check_null, separate) \ argument
949 if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null))) { \
955 #define Z_PARAM_PATH_STR(dest) \ argument
956 Z_PARAM_PATH_STR_EX(dest, 0, 0)
959 #define Z_PARAM_RESOURCE_EX(dest, check_null, separate) \ argument
961 if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
967 #define Z_PARAM_RESOURCE(dest) \ argument
968 Z_PARAM_RESOURCE_EX(dest, 0, 0)
971 #define Z_PARAM_STRING_EX(dest, dest_len, check_null, separate) \ argument
973 if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null))) { \
979 #define Z_PARAM_STRING(dest, dest_len) \ argument
980 Z_PARAM_STRING_EX(dest, dest_len, 0, 0)
983 #define Z_PARAM_STR_EX(dest, check_null, separate) \ argument
985 if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null))) { \
991 #define Z_PARAM_STR(dest) \ argument
992 Z_PARAM_STR_EX(dest, 0, 0)
995 #define Z_PARAM_ZVAL_EX(dest, check_null, separate) \ argument
998 zend_parse_arg_zval_deref(_arg, &dest, check_null); \
1005 zend_parse_arg_zval(_real_arg, &dest, check_null); \
1008 #define Z_PARAM_ZVAL(dest) \ argument
1009 Z_PARAM_ZVAL_EX(dest, 0, 0)
1012 #define Z_PARAM_ZVAL_DEREF_EX(dest, check_null, separate) \ argument
1014 zend_parse_arg_zval_deref(_arg, &dest, check_null);
1016 #define Z_PARAM_ZVAL_DEREF(dest) \ argument
1017 Z_PARAM_ZVAL_DEREF_EX(dest, 0, 0)
1020 #define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \ argument
1023 dest = _real_arg + 1; \
1028 dest = NULL; \
1033 #define Z_PARAM_VARIADIC(spec, dest, dest_num) \ argument
1034 Z_PARAM_VARIADIC_EX(spec, dest, dest_num, 0)
1041 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1042 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1043 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1044 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1045 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_slow(zval *arg, zend_long *dest);
1046 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_weak(zval *arg, zend_long *dest);
1047 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1048 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1049 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1050 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1052 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
1058 *dest = 1; in zend_parse_arg_bool()
1060 *dest = 0; in zend_parse_arg_bool()
1063 *dest = 0; in zend_parse_arg_bool()
1065 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1070 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
1076 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1079 *dest = 0; in zend_parse_arg_long()
1081 return zend_parse_arg_long_cap_slow(arg, dest); in zend_parse_arg_long()
1083 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1088 static zend_always_inline int zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, in… in zend_parse_arg_double() argument
1094 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1097 *dest = 0.0; in zend_parse_arg_double()
1099 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1104 static zend_always_inline int zend_parse_arg_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_str() argument
1107 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1109 *dest = NULL; in zend_parse_arg_str()
1111 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1116 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
1124 *dest = NULL; in zend_parse_arg_string()
1127 *dest = ZSTR_VAL(str); in zend_parse_arg_string()
1133 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
1135 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1136 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { in zend_parse_arg_path_str()
1142 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
1150 *dest = NULL; in zend_parse_arg_path()
1153 *dest = ZSTR_VAL(str); in zend_parse_arg_path()
1159 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
1163 *dest = arg; in zend_parse_arg_array()
1165 *dest = NULL; in zend_parse_arg_array()
1172 static zend_always_inline int zend_parse_arg_array_ht(zval *arg, HashTable **dest, int check_null, … in zend_parse_arg_array_ht() argument
1175 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
1177 *dest = Z_OBJ_HT_P(arg)->get_properties(arg); in zend_parse_arg_array_ht()
1179 *dest = NULL; in zend_parse_arg_array_ht()
1186 static zend_always_inline int zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, i… in zend_parse_arg_object() argument
1190 *dest = arg; in zend_parse_arg_object()
1192 *dest = NULL; in zend_parse_arg_object()
1199 static zend_always_inline int zend_parse_arg_resource(zval *arg, zval **dest, int check_null) in zend_parse_arg_resource() argument
1202 *dest = arg; in zend_parse_arg_resource()
1204 *dest = NULL; in zend_parse_arg_resource()
1223 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval() argument
1225 *dest = (check_null && in zend_parse_arg_zval()
1231 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval_deref() argument
1233 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()