Lines Matching refs:check_null

1671 #define Z_PARAM_ARRAY_EX2(dest, check_null, deref, separate) \  argument
1673 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
1674 _expected_type = check_null ? Z_EXPECTED_ARRAY_OR_NULL : Z_EXPECTED_ARRAY; \
1679 #define Z_PARAM_ARRAY_EX(dest, check_null, separate) \ argument
1680 Z_PARAM_ARRAY_EX2(dest, check_null, separate, separate)
1689 #define Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, deref, separate) \ argument
1691 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
1692 _expected_type = check_null ? Z_EXPECTED_ARRAY_OR_NULL : Z_EXPECTED_ARRAY; \
1697 #define Z_PARAM_ARRAY_OR_OBJECT_EX(dest, check_null, separate) \ argument
1698 Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, separate, separate)
1703 #define Z_PARAM_ITERABLE_EX(dest, check_null) \ argument
1705 if (UNEXPECTED(!zend_parse_arg_iterable(_arg, &dest, check_null))) { \
1706 _expected_type = check_null ? Z_EXPECTED_ITERABLE_OR_NULL : Z_EXPECTED_ITERABLE; \
1718 #define Z_PARAM_BOOL_EX(dest, is_null, check_null, deref) \ argument
1720 if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null, _i))) { \
1721 _expected_type = check_null ? Z_EXPECTED_BOOL_OR_NULL : Z_EXPECTED_BOOL; \
1733 #define Z_PARAM_CLASS_EX(dest, check_null, deref) \ argument
1735 if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
1795 #define Z_PARAM_DOUBLE_EX(dest, is_null, check_null, deref) \ argument
1797 if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null, _i))) { \
1798 _expected_type = check_null ? Z_EXPECTED_DOUBLE_OR_NULL : Z_EXPECTED_DOUBLE; \
1810 #define Z_PARAM_FUNC_EX2(dest_fci, dest_fcc, check_null, deref, free_trampoline) \ argument
1812 …if (UNEXPECTED(!zend_parse_arg_func(_arg, &dest_fci, &dest_fcc, check_null, &_error, free_trampoli…
1814 _expected_type = check_null ? Z_EXPECTED_FUNC_OR_NULL : Z_EXPECTED_FUNC; \
1817 _error_code = check_null ? ZPP_ERROR_WRONG_CALLBACK_OR_NULL : ZPP_ERROR_WRONG_CALLBACK; \
1822 …define Z_PARAM_FUNC_EX(dest_fci, dest_fcc, check_null, deref) Z_PARAM_FUNC_EX2(dest_fci, dest_fcc,… argument
1841 #define Z_PARAM_ARRAY_HT_EX2(dest, check_null, deref, separate) \ argument
1843 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0, separate))) { \
1844 _expected_type = check_null ? Z_EXPECTED_ARRAY_OR_NULL : Z_EXPECTED_ARRAY; \
1849 #define Z_PARAM_ARRAY_HT_EX(dest, check_null, separate) \ argument
1850 Z_PARAM_ARRAY_HT_EX2(dest, check_null, separate, separate)
1873 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, deref, separate) \ argument
1875 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1, separate))) { \
1876 _expected_type = check_null ? Z_EXPECTED_ARRAY_OR_NULL : Z_EXPECTED_ARRAY; \
1881 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, check_null, separate) \ argument
1882 Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, separate, separate)
1888 #define Z_PARAM_LONG_EX(dest, is_null, check_null, deref) \ argument
1890 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, _i))) { \
1891 _expected_type = check_null ? Z_EXPECTED_LONG_OR_NULL : Z_EXPECTED_LONG; \
1903 #define Z_PARAM_NUMBER_EX(dest, check_null) \ argument
1905 if (UNEXPECTED(!zend_parse_arg_number(_arg, &dest, check_null, _i))) { \
1906 _expected_type = check_null ? Z_EXPECTED_NUMBER_OR_NULL : Z_EXPECTED_NUMBER; \
1917 #define Z_PARAM_NUMBER_OR_STR_EX(dest, check_null) \ argument
1919 if (UNEXPECTED(!zend_parse_arg_number_or_str(_arg, &dest, check_null, _i))) { \
1920 _expected_type = check_null ? Z_EXPECTED_NUMBER_OR_STRING_OR_NULL : Z_EXPECTED_NUMBER_OR_STRING; \
1932 #define Z_PARAM_OBJECT_EX(dest, check_null, deref) \ argument
1934 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
1935 _expected_type = check_null ? Z_EXPECTED_OBJECT_OR_NULL : Z_EXPECTED_OBJECT; \
1947 #define Z_PARAM_OBJ_EX(dest, check_null, deref) \ argument
1949 if (UNEXPECTED(!zend_parse_arg_obj(_arg, &dest, NULL, check_null))) { \
1950 _expected_type = check_null ? Z_EXPECTED_OBJECT_OR_NULL : Z_EXPECTED_OBJECT; \
1962 #define Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, check_null, deref) \ argument
1964 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
1967 _error_code = check_null ? ZPP_ERROR_WRONG_CLASS_OR_NULL : ZPP_ERROR_WRONG_CLASS; \
1970 _expected_type = check_null ? Z_EXPECTED_OBJECT_OR_NULL : Z_EXPECTED_OBJECT; \
1983 #define Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, check_null, deref) \ argument
1985 if (UNEXPECTED(!zend_parse_arg_obj(_arg, &dest, _ce, check_null))) { \
1988 _error_code = check_null ? ZPP_ERROR_WRONG_CLASS_OR_NULL : ZPP_ERROR_WRONG_CLASS; \
1991 _expected_type = check_null ? Z_EXPECTED_OBJECT_OR_NULL : Z_EXPECTED_OBJECT; \
2018 #define Z_PARAM_PATH_EX(dest, dest_len, check_null, deref) \ argument
2020 if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null, _i))) { \
2021 _expected_type = check_null ? Z_EXPECTED_PATH_OR_NULL : Z_EXPECTED_PATH; \
2033 #define Z_PARAM_PATH_STR_EX(dest, check_null, deref) \ argument
2035 if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null, _i))) { \
2036 _expected_type = check_null ? Z_EXPECTED_PATH_OR_NULL : Z_EXPECTED_PATH; \
2048 #define Z_PARAM_RESOURCE_EX(dest, check_null, deref) \ argument
2050 if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
2051 _expected_type = check_null ? Z_EXPECTED_RESOURCE_OR_NULL : Z_EXPECTED_RESOURCE; \
2063 #define Z_PARAM_STRING_EX(dest, dest_len, check_null, deref) \ argument
2065 if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null, _i))) { \
2066 _expected_type = check_null ? Z_EXPECTED_STRING_OR_NULL : Z_EXPECTED_STRING; \
2078 #define Z_PARAM_STR_EX(dest, check_null, deref) \ argument
2080 if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null, _i))) { \
2081 _expected_type = check_null ? Z_EXPECTED_STRING_OR_NULL : Z_EXPECTED_STRING; \
2093 #define Z_PARAM_ZVAL_EX2(dest, check_null, deref, separate) \ argument
2095 zend_parse_arg_zval_deref(_arg, &dest, check_null);
2097 #define Z_PARAM_ZVAL_EX(dest, check_null, separate) \ argument
2098 Z_PARAM_ZVAL_EX2(dest, check_null, separate, separate)
2175 …ND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pce, uint32_t num, bool check_null);
2192 …end_parse_arg_bool_ex(const zval *arg, bool *dest, bool *is_null, bool check_null, uint32_t arg_nu… in zend_parse_arg_bool_ex() argument
2194 if (check_null) { in zend_parse_arg_bool_ex()
2201 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_bool_ex()
2214 …l zend_parse_arg_bool(const zval *arg, bool *dest, bool *is_null, bool check_null, uint32_t arg_nu… in zend_parse_arg_bool() argument
2216 return zend_parse_arg_bool_ex(arg, dest, is_null, check_null, arg_num, /* frameless */ false); in zend_parse_arg_bool()
2219 …zend_parse_arg_long_ex(zval *arg, zend_long *dest, bool *is_null, bool check_null, uint32_t arg_nu… in zend_parse_arg_long_ex() argument
2221 if (check_null) { in zend_parse_arg_long_ex()
2226 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_long_ex()
2239 …ol zend_parse_arg_long(zval *arg, zend_long *dest, bool *is_null, bool check_null, uint32_t arg_nu… in zend_parse_arg_long() argument
2241 return zend_parse_arg_long_ex(arg, dest, is_null, check_null, arg_num, /* frameless */ false); in zend_parse_arg_long()
2244 …nd_parse_arg_double(const zval *arg, double *dest, bool *is_null, bool check_null, uint32_t arg_nu… in zend_parse_arg_double() argument
2246 if (check_null) { in zend_parse_arg_double()
2251 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_double()
2260 static zend_always_inline bool zend_parse_arg_number(zval *arg, zval **dest, bool check_null, uint3… in zend_parse_arg_number() argument
2264 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_number()
2272 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
2276 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_number_or_str()
2284 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
2288 } else if (check_null && Z_TYPE_P(arg) == IS_NULL) { in zend_parse_arg_str_ex()
2300 static zend_always_inline bool zend_parse_arg_str(zval *arg, zend_string **dest, bool check_null, u… in zend_parse_arg_str() argument
2302 return zend_parse_arg_str_ex(arg, dest, check_null, arg_num, /* frameless */ false); in zend_parse_arg_str()
2305 …l zend_parse_arg_string(zval *arg, char **dest, size_t *dest_len, bool check_null, uint32_t arg_nu… in zend_parse_arg_string() argument
2309 if (!zend_parse_arg_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_string()
2312 if (check_null && UNEXPECTED(!str)) { in zend_parse_arg_string()
2322 …nline bool zend_parse_arg_path_str(zval *arg, zend_string **dest, bool check_null, uint32_t arg_nu… in zend_parse_arg_path_str() argument
2324 if (!zend_parse_arg_str(arg, dest, check_null, arg_num) || in zend_parse_arg_path_str()
2331 …ool zend_parse_arg_path(zval *arg, char **dest, size_t *dest_len, bool check_null, uint32_t arg_nu… in zend_parse_arg_path() argument
2335 if (!zend_parse_arg_path_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_path()
2338 if (check_null && UNEXPECTED(!str)) { in zend_parse_arg_path()
2348 static zend_always_inline bool zend_parse_arg_iterable(zval *arg, zval **dest, bool check_null) in zend_parse_arg_iterable() argument
2355 if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_iterable()
2363 static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool check_null, bool o… in zend_parse_arg_array() argument
2368 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array()
2376 …e bool zend_parse_arg_array_ht(const zval *arg, HashTable **dest, bool check_null, bool or_object,… in zend_parse_arg_array_ht() argument
2391 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_array_ht()
2422 …ys_inline bool zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, bool check_null) in zend_parse_arg_object() argument
2427 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_object()
2435 …bool zend_parse_arg_obj(const zval *arg, zend_object **dest, zend_class_entry *ce, bool check_null) in zend_parse_arg_obj() argument
2440 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_obj()
2471 static zend_always_inline bool zend_parse_arg_resource(zval *arg, zval **dest, bool check_null) in zend_parse_arg_resource() argument
2475 } else if (check_null && EXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_resource()
2483 …*arg, zend_fcall_info *dest_fci, zend_fcall_info_cache *dest_fcc, bool check_null, char **error, b… in zend_parse_arg_func() argument
2485 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func()
2501 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval() argument
2503 *dest = (check_null && in zend_parse_arg_zval()
2509 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval_deref() argument
2511 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()