From: Ilia Alshanetsky Date: Tue, 18 Dec 2007 13:46:07 +0000 (+0000) Subject: Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result X-Git-Tag: RELEASE_1_3_1~486 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5d2b863038f2b11744f770e528430e63558161a;p=php Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result in a crash) --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index fb7fdced05..3d3668656d 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -153,7 +153,7 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC); #define CAAL(s, v) add_assoc_long_ex(return_value, s, sizeof(s), (long) v); #define CAAD(s, v) add_assoc_double_ex(return_value, s, sizeof(s), (double) v); -#define CAAS(s, v) add_assoc_string_ex(return_value, s, sizeof(s), (char *) v, 1); +#define CAAS(s, v) add_assoc_string_ex(return_value, s, sizeof(s), (char *) (v ? v : ""), 1); #define CAAZ(s, v) add_assoc_zval_ex(return_value, s, sizeof(s), (zval *) v); #if defined(PHP_WIN32) || defined(__GNUC__)