mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Require semicolon after SAVE_CURL_ERROR()
This commit is contained in:
parent
c55af3c65a
commit
5d3337076b
@ -107,8 +107,8 @@ static ZEND_ATTRIBUTE_UNUSED unsigned long php_curl_ssl_id(void)
|
||||
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 SAVE_CURL_ERROR(__handle, __err) \
|
||||
do { (__handle)->err.no = (int) __err; } while (0)
|
||||
|
||||
#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);
|
||||
@ -147,7 +147,7 @@ static int php_curl_option_str(php_curl *ch, zend_long option, const char *str,
|
||||
}
|
||||
#endif
|
||||
|
||||
SAVE_CURL_ERROR(ch, error)
|
||||
SAVE_CURL_ERROR(ch, error);
|
||||
|
||||
return error == CURLE_OK ? SUCCESS : FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user