]> granicus.if.org Git - php/commitdiff
The test for bug #46739 doesn't actually need the remote
authorRasmus Lerdorf <rasmus@php.net>
Sun, 26 Jul 2009 02:12:38 +0000 (02:12 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 26 Jul 2009 02:12:38 +0000 (02:12 +0000)
responder, so get rid of the skipif in PHP 5, and it was
broken in PHP 6 because the keys in the curl_info array
were not unicode.  All internally-generated arrays should
have unicode keys.

ext/curl/interface.c

index bfb73c73eab2719f5a2db2653485cd3212bc461f..7a9e90957966028b18b3f2653765c000c4123498 100644 (file)
@@ -152,10 +152,10 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
 
 #define SAVE_CURL_ERROR(__handle, __err) (__handle)->err.no = (int) __err;
 
-#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 CAAL(s, v) add_ascii_assoc_long_ex(return_value, s, sizeof(s), (long) v);
+#define CAAD(s, v) add_ascii_assoc_double_ex(return_value, s, sizeof(s), (double) v);
 #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);
+#define CAAZ(s, v) add_ascii_assoc_zval_ex(return_value, s, sizeof(s), (zval *) v);
 
 #if defined(PHP_WIN32) || defined(__GNUC__)
 # define php_curl_ret(__ret) RETVAL_FALSE; return __ret;