]> granicus.if.org Git - php/commitdiff
- #47966, cannot access curl info array without binary
authorPierre Joye <pajoye@php.net>
Sun, 3 May 2009 21:47:52 +0000 (21:47 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 3 May 2009 21:47:52 +0000 (21:47 +0000)
  To check: why add_assoc_ascii_string_ex fails while add_assoc_ascii_string works

ext/curl/interface.c

index 33b8d718d6ada37f5a83d76c45d84039fccd1995..186f259aa7a1549337513d05d4f67f162ee88125 100644 (file)
@@ -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__)