Save multi_info_read() result into easy handle.
This commit is contained in:
Abyr Valg 2019-07-17 21:46:40 +03:00 committed by Nikita Popov
parent b864abfe23
commit c8c183eb62
5 changed files with 54 additions and 2 deletions

View file

@ -152,8 +152,6 @@ static void _php_curl_close_ex(php_curl *ch);
static void _php_curl_close(zend_resource *rsrc);
#define SAVE_CURL_ERROR(__handle, __err) (__handle)->err.no = (int) __err;
#define CAAL(s, v) add_assoc_long_ex(return_value, s, sizeof(s) - 1, (zend_long) v);
#define CAAD(s, v) add_assoc_double_ex(return_value, s, sizeof(s) - 1, (double) v);
#define CAAS(s, v) add_assoc_string_ex(return_value, s, sizeof(s) - 1, (char *) (v ? v : ""));