From: Pierre Joye Date: Sun, 3 May 2009 21:47:52 +0000 (+0000) Subject: - #47966, cannot access curl info array without binary X-Git-Tag: php-5.4.0alpha1~191^2~3770 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25932bbcd556460637239c577b1db987eab52dfc;p=php - #47966, cannot access curl info array without binary To check: why add_assoc_ascii_string_ex fails while add_assoc_ascii_string works --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 33b8d718d6..186f259aa7 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_ascii_string_ex(return_value, s, sizeof(s), (char *) (v ? v : ""), 1); +#define CAAS(s, v) add_ascii_assoc_string(return_value, s, (v ? v : ""), 1); #define CAAZ(s, v) add_assoc_zval_ex(return_value, s, sizeof(s), (zval *) v); #if defined(PHP_WIN32) || defined(__GNUC__)