Lines Matching refs:dest
1354 #define Z_PARAM_ARRAY_EX2(dest, check_null, deref, separate) \ argument
1356 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
1362 #define Z_PARAM_ARRAY_EX(dest, check_null, separate) \ argument
1363 Z_PARAM_ARRAY_EX2(dest, check_null, separate, separate)
1365 #define Z_PARAM_ARRAY(dest) \ argument
1366 Z_PARAM_ARRAY_EX(dest, 0, 0)
1368 #define Z_PARAM_ARRAY_OR_NULL(dest) \ argument
1369 Z_PARAM_ARRAY_EX(dest, 1, 0)
1372 #define Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, deref, separate) \ argument
1374 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
1380 #define Z_PARAM_ARRAY_OR_OBJECT_EX(dest, check_null, separate) \ argument
1381 Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, separate, separate)
1383 #define Z_PARAM_ARRAY_OR_OBJECT(dest) \ argument
1384 Z_PARAM_ARRAY_OR_OBJECT_EX(dest, 0, 0)
1386 #define Z_PARAM_ITERABLE_EX(dest, check_null) \ argument
1388 if (UNEXPECTED(!zend_parse_arg_iterable(_arg, &dest, check_null))) { \
1394 #define Z_PARAM_ITERABLE(dest) \ argument
1395 Z_PARAM_ITERABLE_EX(dest, 0)
1397 #define Z_PARAM_ITERABLE_OR_NULL(dest) \ argument
1398 Z_PARAM_ITERABLE_EX(dest, 1)
1401 #define Z_PARAM_BOOL_EX2(dest, is_null, check_null, deref, separate) \ argument
1403 if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null))) { \
1409 #define Z_PARAM_BOOL_EX(dest, is_null, check_null, separate) \ argument
1410 Z_PARAM_BOOL_EX2(dest, is_null, check_null, separate, separate)
1412 #define Z_PARAM_BOOL(dest) \ argument
1413 Z_PARAM_BOOL_EX(dest, _dummy, 0, 0)
1415 #define Z_PARAM_BOOL_OR_NULL(dest, is_null) \ argument
1416 Z_PARAM_BOOL_EX(dest, is_null, 1, 0)
1419 #define Z_PARAM_CLASS_EX2(dest, check_null, deref, separate) \ argument
1421 if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
1426 #define Z_PARAM_CLASS_EX(dest, check_null, separate) \ argument
1427 Z_PARAM_CLASS_EX2(dest, check_null, separate, separate)
1429 #define Z_PARAM_CLASS(dest) \ argument
1430 Z_PARAM_CLASS_EX(dest, 0, 0)
1432 #define Z_PARAM_CLASS_OR_NULL(dest) \ argument
1433 Z_PARAM_CLASS_EX(dest, 1, 0)
1435 #define Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, allow_null) \ argument
1437 if (UNEXPECTED(!zend_parse_arg_obj_or_class_name(_arg, &dest, allow_null))) { \
1443 #define Z_PARAM_OBJ_OR_CLASS_NAME(dest) \ argument
1444 Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, 0);
1446 #define Z_PARAM_OBJ_OR_CLASS_NAME_OR_NULL(dest) \ argument
1447 Z_PARAM_OBJ_OR_CLASS_NAME_EX(dest, 1);
1484 #define Z_PARAM_DOUBLE_EX2(dest, is_null, check_null, deref, separate) \ argument
1486 if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null))) { \
1492 #define Z_PARAM_DOUBLE_EX(dest, is_null, check_null, separate) \ argument
1493 Z_PARAM_DOUBLE_EX2(dest, is_null, check_null, separate, separate)
1495 #define Z_PARAM_DOUBLE(dest) \ argument
1496 Z_PARAM_DOUBLE_EX(dest, _dummy, 0, 0)
1498 #define Z_PARAM_DOUBLE_OR_NULL(dest, is_null) \ argument
1499 Z_PARAM_DOUBLE_EX(dest, is_null, 1, 0)
1524 #define Z_PARAM_ARRAY_HT_EX2(dest, check_null, deref, separate) \ argument
1526 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0, separate))) { \
1532 #define Z_PARAM_ARRAY_HT_EX(dest, check_null, separate) \ argument
1533 Z_PARAM_ARRAY_HT_EX2(dest, check_null, separate, separate)
1535 #define Z_PARAM_ARRAY_HT(dest) \ argument
1536 Z_PARAM_ARRAY_HT_EX(dest, 0, 0)
1538 #define Z_PARAM_ARRAY_HT_OR_NULL(dest) \ argument
1539 Z_PARAM_ARRAY_HT_EX(dest, 1, 0)
1556 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, deref, separate) \ argument
1558 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1, separate))) { \
1564 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, check_null, separate) \ argument
1565 Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, separate, separate)
1567 #define Z_PARAM_ARRAY_OR_OBJECT_HT(dest) \ argument
1568 Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, 0, 0)
1571 #define Z_PARAM_LONG_EX2(dest, is_null, check_null, deref, separate) \ argument
1573 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null))) { \
1579 #define Z_PARAM_LONG_EX(dest, is_null, check_null, separate) \ argument
1580 Z_PARAM_LONG_EX2(dest, is_null, check_null, separate, separate)
1582 #define Z_PARAM_LONG(dest) \ argument
1583 Z_PARAM_LONG_EX(dest, _dummy, 0, 0)
1585 #define Z_PARAM_LONG_OR_NULL(dest, is_null) \ argument
1586 Z_PARAM_LONG_EX(dest, is_null, 1, 0)
1589 #define Z_PARAM_NUMBER_EX(dest, check_null) \ argument
1591 if (UNEXPECTED(!zend_parse_arg_number(_arg, &dest, check_null))) { \
1597 #define Z_PARAM_NUMBER_OR_NULL(dest) \ argument
1598 Z_PARAM_NUMBER_EX(dest, 1)
1600 #define Z_PARAM_NUMBER(dest) \ argument
1601 Z_PARAM_NUMBER_EX(dest, 0)
1604 #define Z_PARAM_OBJECT_EX2(dest, check_null, deref, separate) \ argument
1606 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
1612 #define Z_PARAM_OBJECT_EX(dest, check_null, separate) \ argument
1613 Z_PARAM_OBJECT_EX2(dest, check_null, separate, separate)
1615 #define Z_PARAM_OBJECT(dest) \ argument
1616 Z_PARAM_OBJECT_EX(dest, 0, 0)
1618 #define Z_PARAM_OBJECT_OR_NULL(dest) \ argument
1619 Z_PARAM_OBJECT_EX(dest, 1, 0)
1622 #define Z_PARAM_OBJ_EX2(dest, check_null, deref, separate) \ argument
1624 if (UNEXPECTED(!zend_parse_arg_obj(_arg, &dest, NULL, check_null))) { \
1630 #define Z_PARAM_OBJ_EX(dest, check_null, separate) \ argument
1631 Z_PARAM_OBJ_EX2(dest, check_null, separate, separate)
1633 #define Z_PARAM_OBJ(dest) \ argument
1634 Z_PARAM_OBJ_EX(dest, 0, 0)
1636 #define Z_PARAM_OBJ_OR_NULL(dest) \ argument
1637 Z_PARAM_OBJ_EX(dest, 1, 0)
1640 #define Z_PARAM_OBJECT_OF_CLASS_EX2(dest, _ce, check_null, deref, separate) \ argument
1642 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
1654 #define Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, check_null, separate) \ argument
1655 Z_PARAM_OBJECT_OF_CLASS_EX2(dest, _ce, check_null, separate, separate)
1657 #define Z_PARAM_OBJECT_OF_CLASS(dest, _ce) \ argument
1658 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 0, 0)
1660 #define Z_PARAM_OBJECT_OF_CLASS_OR_NULL(dest, _ce) \ argument
1661 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 1, 0)
1664 #define Z_PARAM_OBJ_OF_CLASS_EX2(dest, _ce, check_null, deref, separate) \ argument
1666 if (UNEXPECTED(!zend_parse_arg_obj(_arg, &dest, _ce, check_null))) { \
1678 #define Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, check_null, separate) \ argument
1679 Z_PARAM_OBJ_OF_CLASS_EX2(dest, _ce, check_null, separate, separate)
1681 #define Z_PARAM_OBJ_OF_CLASS(dest, _ce) \ argument
1682 Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, 0, 0)
1684 #define Z_PARAM_OBJ_OF_CLASS_OR_NULL(dest, _ce) \ argument
1685 Z_PARAM_OBJ_OF_CLASS_EX(dest, _ce, 1, 0)
1702 #define Z_PARAM_PATH_EX2(dest, dest_len, check_null, deref, separate) \ argument
1704 if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null))) { \
1710 #define Z_PARAM_PATH_EX(dest, dest_len, check_null, separate) \ argument
1711 Z_PARAM_PATH_EX2(dest, dest_len, check_null, separate, separate)
1713 #define Z_PARAM_PATH(dest, dest_len) \ argument
1714 Z_PARAM_PATH_EX(dest, dest_len, 0, 0)
1716 #define Z_PARAM_PATH_OR_NULL(dest, dest_len) \ argument
1717 Z_PARAM_PATH_EX(dest, dest_len, 1, 0)
1720 #define Z_PARAM_PATH_STR_EX2(dest, check_null, deref, separate) \ argument
1722 if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null))) { \
1728 #define Z_PARAM_PATH_STR_EX(dest, check_null, separate) \ argument
1729 Z_PARAM_PATH_STR_EX2(dest, check_null, separate, separate)
1731 #define Z_PARAM_PATH_STR(dest) \ argument
1732 Z_PARAM_PATH_STR_EX(dest, 0, 0)
1734 #define Z_PARAM_PATH_STR_OR_NULL(dest) \ argument
1735 Z_PARAM_PATH_STR_EX(dest, 1, 0)
1738 #define Z_PARAM_RESOURCE_EX2(dest, check_null, deref, separate) \ argument
1740 if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
1746 #define Z_PARAM_RESOURCE_EX(dest, check_null, separate) \ argument
1747 Z_PARAM_RESOURCE_EX2(dest, check_null, separate, separate)
1749 #define Z_PARAM_RESOURCE(dest) \ argument
1750 Z_PARAM_RESOURCE_EX(dest, 0, 0)
1752 #define Z_PARAM_RESOURCE_OR_NULL(dest) \ argument
1753 Z_PARAM_RESOURCE_EX(dest, 1, 0)
1756 #define Z_PARAM_STRING_EX2(dest, dest_len, check_null, deref, separate) \ argument
1758 if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null))) { \
1764 #define Z_PARAM_STRING_EX(dest, dest_len, check_null, separate) \ argument
1765 Z_PARAM_STRING_EX2(dest, dest_len, check_null, separate, separate)
1767 #define Z_PARAM_STRING(dest, dest_len) \ argument
1768 Z_PARAM_STRING_EX(dest, dest_len, 0, 0)
1770 #define Z_PARAM_STRING_OR_NULL(dest, dest_len) \ argument
1771 Z_PARAM_STRING_EX(dest, dest_len, 1, 0)
1774 #define Z_PARAM_STR_EX2(dest, check_null, deref, separate) \ argument
1776 if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null))) { \
1782 #define Z_PARAM_STR_EX(dest, check_null, separate) \ argument
1783 Z_PARAM_STR_EX2(dest, check_null, separate, separate)
1785 #define Z_PARAM_STR(dest) \ argument
1786 Z_PARAM_STR_EX(dest, 0, 0)
1788 #define Z_PARAM_STR_OR_NULL(dest) \ argument
1789 Z_PARAM_STR_EX(dest, 1, 0)
1792 #define Z_PARAM_ZVAL_EX2(dest, check_null, deref, separate) \ argument
1794 zend_parse_arg_zval_deref(_arg, &dest, check_null);
1796 #define Z_PARAM_ZVAL_EX(dest, check_null, separate) \ argument
1797 Z_PARAM_ZVAL_EX2(dest, check_null, separate, separate)
1799 #define Z_PARAM_ZVAL(dest) \ argument
1800 Z_PARAM_ZVAL_EX(dest, 0, 0)
1802 #define Z_PARAM_ZVAL_OR_NULL(dest) \ argument
1803 Z_PARAM_ZVAL_EX(dest, 1, 0)
1806 #define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \ argument
1809 dest = _real_arg + 1; \
1814 dest = NULL; \
1823 #define Z_PARAM_VARIADIC(spec, dest, dest_num) \ argument
1824 Z_PARAM_VARIADIC_EX(spec, dest, dest_num, 0)
1826 #define Z_PARAM_VARIADIC_WITH_NAMED(dest, dest_num, dest_named) do { \ argument
1829 dest = _real_arg + 1; \
1832 dest = NULL; \
1875 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1876 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1877 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1878 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1879 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1880 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1881 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1882 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1883 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow(zval *arg, zval **dest);
1886 static zend_always_inline bool zend_parse_arg_bool(zval *arg, zend_bool *dest, zend_bool *is_null, … in zend_parse_arg_bool() argument
1892 *dest = 1; in zend_parse_arg_bool()
1894 *dest = 0; in zend_parse_arg_bool()
1897 *dest = 0; in zend_parse_arg_bool()
1899 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1904 static zend_always_inline bool zend_parse_arg_long(zval *arg, zend_long *dest, zend_bool *is_null, … in zend_parse_arg_long() argument
1910 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1913 *dest = 0; in zend_parse_arg_long()
1915 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1920 static zend_always_inline bool zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, b… in zend_parse_arg_double() argument
1926 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1929 *dest = 0.0; in zend_parse_arg_double()
1931 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1936 static zend_always_inline bool zend_parse_arg_number(zval *arg, zval **dest, bool check_null) in zend_parse_arg_number() argument
1939 *dest = arg; in zend_parse_arg_number()
1941 *dest = NULL; in zend_parse_arg_number()
1943 return zend_parse_arg_number_slow(arg, dest); in zend_parse_arg_number()
1948 static zend_always_inline bool zend_parse_arg_str(zval *arg, zend_string **dest, bool check_null) in zend_parse_arg_str() argument
1951 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1953 *dest = NULL; in zend_parse_arg_str()
1955 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1960 static zend_always_inline bool zend_parse_arg_string(zval *arg, char **dest, size_t *dest_len, bool… in zend_parse_arg_string() argument
1968 *dest = NULL; in zend_parse_arg_string()
1971 *dest = ZSTR_VAL(str); in zend_parse_arg_string()
1977 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
1979 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1980 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { in zend_parse_arg_path_str()
1986 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
1994 *dest = NULL; in zend_parse_arg_path()
1997 *dest = ZSTR_VAL(str); in zend_parse_arg_path()
2003 static zend_always_inline bool zend_parse_arg_iterable(zval *arg, zval **dest, bool check_null) in zend_parse_arg_iterable() argument
2006 *dest = arg; in zend_parse_arg_iterable()
2011 *dest = NULL; in zend_parse_arg_iterable()
2018 static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool check_null, bool o… in zend_parse_arg_array() argument
2022 *dest = arg; in zend_parse_arg_array()
2024 *dest = NULL; in zend_parse_arg_array()
2031 static zend_always_inline bool zend_parse_arg_array_ht(zval *arg, HashTable **dest, bool check_null… in zend_parse_arg_array_ht() argument
2034 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
2045 *dest = zobj->handlers->get_properties(zobj); in zend_parse_arg_array_ht()
2047 *dest = NULL; in zend_parse_arg_array_ht()
2077 static zend_always_inline bool zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, … in zend_parse_arg_object() argument
2081 *dest = arg; in zend_parse_arg_object()
2083 *dest = NULL; in zend_parse_arg_object()
2090 static zend_always_inline bool zend_parse_arg_obj(zval *arg, zend_object **dest, zend_class_entry *… in zend_parse_arg_obj() argument
2094 *dest = Z_OBJ_P(arg); in zend_parse_arg_obj()
2096 *dest = NULL; in zend_parse_arg_obj()
2126 static zend_always_inline bool zend_parse_arg_resource(zval *arg, zval **dest, bool check_null) in zend_parse_arg_resource() argument
2129 *dest = arg; in zend_parse_arg_resource()
2131 *dest = NULL; in zend_parse_arg_resource()
2154 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval() argument
2156 *dest = (check_null && in zend_parse_arg_zval()
2162 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, bool check_null) in zend_parse_arg_zval_deref() argument
2164 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()