From: Ilia Alshanetsky Date: Tue, 18 Dec 2007 13:47:37 +0000 (+0000) Subject: MFB: Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can X-Git-Tag: php-5.2.6RC1~236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a68454f659c0cdfbdef1be09b1e0fd3a7db368c1;p=php MFB: Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result in a crash) --- diff --git a/NEWS b/NEWS index 99c98d64ba..b637b969a0 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ PHP NEWS ?? ??? 2008, PHP 5.2.6 - Fixed weired behavior in CGI parameter parsing. (Dmitry, Hannes Magnusson) +- Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result + in a crash). (Ilia) - Fixed bug #43606 (define missing depencies of the exif extension). (crrodriguez at suse dot de) - Fixed bug #43589 (a possible infinite loop in bz2_filter.c). (Greg) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index a0f09c030e..c0381ae621 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__)