Lines Matching refs:dest
1239 #define Z_PARAM_ARRAY_EX2(dest, check_null, deref, separate) \ argument
1241 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 0))) { \
1247 #define Z_PARAM_ARRAY_EX(dest, check_null, separate) \ argument
1248 Z_PARAM_ARRAY_EX2(dest, check_null, separate, separate)
1250 #define Z_PARAM_ARRAY(dest) \ argument
1251 Z_PARAM_ARRAY_EX(dest, 0, 0)
1254 #define Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, deref, separate) \ argument
1256 if (UNEXPECTED(!zend_parse_arg_array(_arg, &dest, check_null, 1))) { \
1262 #define Z_PARAM_ARRAY_OR_OBJECT_EX(dest, check_null, separate) \ argument
1263 Z_PARAM_ARRAY_OR_OBJECT_EX2(dest, check_null, separate, separate)
1265 #define Z_PARAM_ARRAY_OR_OBJECT(dest) \ argument
1266 Z_PARAM_ARRAY_OR_OBJECT_EX(dest, 0, 0)
1269 #define Z_PARAM_BOOL_EX2(dest, is_null, check_null, deref, separate) \ argument
1271 if (UNEXPECTED(!zend_parse_arg_bool(_arg, &dest, &is_null, check_null))) { \
1277 #define Z_PARAM_BOOL_EX(dest, is_null, check_null, separate) \ argument
1278 Z_PARAM_BOOL_EX2(dest, is_null, check_null, separate, separate)
1280 #define Z_PARAM_BOOL(dest) \ argument
1281 Z_PARAM_BOOL_EX(dest, _dummy, 0, 0)
1284 #define Z_PARAM_CLASS_EX2(dest, check_null, deref, separate) \ argument
1286 if (UNEXPECTED(!zend_parse_arg_class(_arg, &dest, _i, check_null))) { \
1291 #define Z_PARAM_CLASS_EX(dest, check_null, separate) \ argument
1292 Z_PARAM_CLASS_EX2(dest, check_null, separate, separate)
1294 #define Z_PARAM_CLASS(dest) \ argument
1295 Z_PARAM_CLASS_EX(dest, 0, 0)
1298 #define Z_PARAM_DOUBLE_EX2(dest, is_null, check_null, deref, separate) \ argument
1300 if (UNEXPECTED(!zend_parse_arg_double(_arg, &dest, &is_null, check_null))) { \
1306 #define Z_PARAM_DOUBLE_EX(dest, is_null, check_null, separate) \ argument
1307 Z_PARAM_DOUBLE_EX2(dest, is_null, check_null, separate, separate)
1309 #define Z_PARAM_DOUBLE(dest) \ argument
1310 Z_PARAM_DOUBLE_EX(dest, _dummy, 0, 0)
1335 #define Z_PARAM_ARRAY_HT_EX2(dest, check_null, deref, separate) \ argument
1337 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 0, separate))) { \
1343 #define Z_PARAM_ARRAY_HT_EX(dest, check_null, separate) \ argument
1344 Z_PARAM_ARRAY_HT_EX2(dest, check_null, separate, separate)
1346 #define Z_PARAM_ARRAY_HT(dest) \ argument
1347 Z_PARAM_ARRAY_HT_EX(dest, 0, 0)
1350 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, deref, separate) \ argument
1352 if (UNEXPECTED(!zend_parse_arg_array_ht(_arg, &dest, check_null, 1, separate))) { \
1358 #define Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, check_null, separate) \ argument
1359 Z_PARAM_ARRAY_OR_OBJECT_HT_EX2(dest, check_null, separate, separate)
1361 #define Z_PARAM_ARRAY_OR_OBJECT_HT(dest) \ argument
1362 Z_PARAM_ARRAY_OR_OBJECT_HT_EX(dest, 0, 0)
1365 #define Z_PARAM_LONG_EX2(dest, is_null, check_null, deref, separate) \ argument
1367 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 0))) { \
1373 #define Z_PARAM_LONG_EX(dest, is_null, check_null, separate) \ argument
1374 Z_PARAM_LONG_EX2(dest, is_null, check_null, separate, separate)
1376 #define Z_PARAM_LONG(dest) \ argument
1377 Z_PARAM_LONG_EX(dest, _dummy, 0, 0)
1380 #define Z_PARAM_STRICT_LONG_EX2(dest, is_null, check_null, deref, separate) \ argument
1382 if (UNEXPECTED(!zend_parse_arg_long(_arg, &dest, &is_null, check_null, 1))) { \
1388 #define Z_PARAM_STRICT_LONG_EX(dest, is_null, check_null, separate) \ argument
1389 Z_PARAM_STRICT_LONG_EX2(dest, is_null, check_null, separate, separate)
1391 #define Z_PARAM_STRICT_LONG(dest) \ argument
1392 Z_PARAM_STRICT_LONG_EX(dest, _dummy, 0, 0)
1395 #define Z_PARAM_OBJECT_EX2(dest, check_null, deref, separate) \ argument
1397 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, NULL, check_null))) { \
1403 #define Z_PARAM_OBJECT_EX(dest, check_null, separate) \ argument
1404 Z_PARAM_OBJECT_EX2(dest, check_null, separate, separate)
1406 #define Z_PARAM_OBJECT(dest) \ argument
1407 Z_PARAM_OBJECT_EX(dest, 0, 0)
1410 #define Z_PARAM_OBJECT_OF_CLASS_EX2(dest, _ce, check_null, deref, separate) \ argument
1412 if (UNEXPECTED(!zend_parse_arg_object(_arg, &dest, _ce, check_null))) { \
1424 #define Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, check_null, separate) \ argument
1425 Z_PARAM_OBJECT_OF_CLASS_EX2(dest, _ce, check_null, separate, separate)
1427 #define Z_PARAM_OBJECT_OF_CLASS(dest, _ce) \ argument
1428 Z_PARAM_OBJECT_OF_CLASS_EX(dest, _ce, 0, 0)
1431 #define Z_PARAM_PATH_EX2(dest, dest_len, check_null, deref, separate) \ argument
1433 if (UNEXPECTED(!zend_parse_arg_path(_arg, &dest, &dest_len, check_null))) { \
1439 #define Z_PARAM_PATH_EX(dest, dest_len, check_null, separate) \ argument
1440 Z_PARAM_PATH_EX2(dest, dest_len, check_null, separate, separate)
1442 #define Z_PARAM_PATH(dest, dest_len) \ argument
1443 Z_PARAM_PATH_EX(dest, dest_len, 0, 0)
1446 #define Z_PARAM_PATH_STR_EX2(dest, check_null, deref, separate) \ argument
1448 if (UNEXPECTED(!zend_parse_arg_path_str(_arg, &dest, check_null))) { \
1454 #define Z_PARAM_PATH_STR_EX(dest, check_null, separate) \ argument
1455 Z_PARAM_PATH_STR_EX2(dest, check_null, separate, separate)
1457 #define Z_PARAM_PATH_STR(dest) \ argument
1458 Z_PARAM_PATH_STR_EX(dest, 0, 0)
1461 #define Z_PARAM_RESOURCE_EX2(dest, check_null, deref, separate) \ argument
1463 if (UNEXPECTED(!zend_parse_arg_resource(_arg, &dest, check_null))) { \
1469 #define Z_PARAM_RESOURCE_EX(dest, check_null, separate) \ argument
1470 Z_PARAM_RESOURCE_EX2(dest, check_null, separate, separate)
1472 #define Z_PARAM_RESOURCE(dest) \ argument
1473 Z_PARAM_RESOURCE_EX(dest, 0, 0)
1476 #define Z_PARAM_STRING_EX2(dest, dest_len, check_null, deref, separate) \ argument
1478 if (UNEXPECTED(!zend_parse_arg_string(_arg, &dest, &dest_len, check_null))) { \
1484 #define Z_PARAM_STRING_EX(dest, dest_len, check_null, separate) \ argument
1485 Z_PARAM_STRING_EX2(dest, dest_len, check_null, separate, separate)
1487 #define Z_PARAM_STRING(dest, dest_len) \ argument
1488 Z_PARAM_STRING_EX(dest, dest_len, 0, 0)
1491 #define Z_PARAM_STR_EX2(dest, check_null, deref, separate) \ argument
1493 if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null))) { \
1499 #define Z_PARAM_STR_EX(dest, check_null, separate) \ argument
1500 Z_PARAM_STR_EX2(dest, check_null, separate, separate)
1502 #define Z_PARAM_STR(dest) \ argument
1503 Z_PARAM_STR_EX(dest, 0, 0)
1506 #define Z_PARAM_ZVAL_EX2(dest, check_null, deref, separate) \ argument
1508 zend_parse_arg_zval_deref(_arg, &dest, check_null);
1510 #define Z_PARAM_ZVAL_EX(dest, check_null, separate) \ argument
1511 Z_PARAM_ZVAL_EX2(dest, check_null, separate, separate)
1513 #define Z_PARAM_ZVAL(dest) \ argument
1514 Z_PARAM_ZVAL_EX(dest, 0, 0)
1517 #define Z_PARAM_ZVAL_DEREF_EX(dest, check_null, separate) \ argument
1519 zend_parse_arg_zval_deref(_arg, &dest, check_null);
1521 #define Z_PARAM_ZVAL_DEREF(dest) \ argument
1522 Z_PARAM_ZVAL_DEREF_EX(dest, 0, 0)
1525 #define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \ argument
1528 dest = _real_arg + 1; \
1533 dest = NULL; \
1538 #define Z_PARAM_VARIADIC(spec, dest, dest_num) \ argument
1539 Z_PARAM_VARIADIC_EX(spec, dest, dest_num, 0)
1546 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, zend_bool *dest);
1547 ZEND_API int ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest);
1548 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest);
1549 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest);
1550 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_slow(zval *arg, zend_long *dest);
1551 ZEND_API int ZEND_FASTCALL zend_parse_arg_long_cap_weak(zval *arg, zend_long *dest);
1552 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest);
1553 ZEND_API int ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest);
1554 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest);
1555 ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest);
1557 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
1563 *dest = 1; in zend_parse_arg_bool()
1565 *dest = 0; in zend_parse_arg_bool()
1568 *dest = 0; in zend_parse_arg_bool()
1570 return zend_parse_arg_bool_slow(arg, dest); in zend_parse_arg_bool()
1575 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
1581 *dest = Z_LVAL_P(arg); in zend_parse_arg_long()
1584 *dest = 0; in zend_parse_arg_long()
1586 return zend_parse_arg_long_cap_slow(arg, dest); in zend_parse_arg_long()
1588 return zend_parse_arg_long_slow(arg, dest); in zend_parse_arg_long()
1593 static zend_always_inline int zend_parse_arg_double(zval *arg, double *dest, zend_bool *is_null, in… in zend_parse_arg_double() argument
1599 *dest = Z_DVAL_P(arg); in zend_parse_arg_double()
1602 *dest = 0.0; in zend_parse_arg_double()
1604 return zend_parse_arg_double_slow(arg, dest); in zend_parse_arg_double()
1609 static zend_always_inline int zend_parse_arg_str(zval *arg, zend_string **dest, int check_null) in zend_parse_arg_str() argument
1612 *dest = Z_STR_P(arg); in zend_parse_arg_str()
1614 *dest = NULL; in zend_parse_arg_str()
1616 return zend_parse_arg_str_slow(arg, dest); in zend_parse_arg_str()
1621 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
1629 *dest = NULL; in zend_parse_arg_string()
1632 *dest = ZSTR_VAL(str); in zend_parse_arg_string()
1638 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
1640 if (!zend_parse_arg_str(arg, dest, check_null) || in zend_parse_arg_path_str()
1641 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { in zend_parse_arg_path_str()
1647 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
1655 *dest = NULL; in zend_parse_arg_path()
1658 *dest = ZSTR_VAL(str); in zend_parse_arg_path()
1664 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
1668 *dest = arg; in zend_parse_arg_array()
1670 *dest = NULL; in zend_parse_arg_array()
1677 static zend_always_inline int zend_parse_arg_array_ht(zval *arg, HashTable **dest, int check_null, … in zend_parse_arg_array_ht() argument
1680 *dest = Z_ARRVAL_P(arg); in zend_parse_arg_array_ht()
1690 *dest = Z_OBJ_HT_P(arg)->get_properties(arg); in zend_parse_arg_array_ht()
1692 *dest = NULL; in zend_parse_arg_array_ht()
1699 static zend_always_inline int zend_parse_arg_object(zval *arg, zval **dest, zend_class_entry *ce, i… in zend_parse_arg_object() argument
1703 *dest = arg; in zend_parse_arg_object()
1705 *dest = NULL; in zend_parse_arg_object()
1712 static zend_always_inline int zend_parse_arg_resource(zval *arg, zval **dest, int check_null) in zend_parse_arg_resource() argument
1715 *dest = arg; in zend_parse_arg_resource()
1717 *dest = NULL; in zend_parse_arg_resource()
1736 static zend_always_inline void zend_parse_arg_zval(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval() argument
1738 *dest = (check_null && in zend_parse_arg_zval()
1744 static zend_always_inline void zend_parse_arg_zval_deref(zval *arg, zval **dest, int check_null) in zend_parse_arg_zval_deref() argument
1746 *dest = (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) ? NULL : arg; in zend_parse_arg_zval_deref()