* un-hack curl info name duplication
authorMichael Wallner <mike@php.net>
Wed, 23 Feb 2005 11:34:57 +0000 (11:34 +0000)
committerMichael Wallner <mike@php.net>
Wed, 23 Feb 2005 11:34:57 +0000 (11:34 +0000)
http_curl_api.c

index ed68c3127dc71493716e43403bbb0f738089f459..7c5c8b34d182490e4b2592b88bd6b5db9f4f6306 100644 (file)
@@ -352,7 +352,7 @@ static inline void _http_curl_setopts(CURL *ch, const char *url, HashTable *opti
 /* {{{ static inline char *http_curl_getinfoname(CURLINFO) */
 static inline char *_http_curl_getinfoname(CURLINFO i TSRMLS_DC)
 {
-#define CASE(I) case CURLINFO_ ##I : { static char I[] = #I; return pretty_key(I, sizeof(#I)-1, 0, 0); }
+#define CASE(I) case CURLINFO_ ##I : { return pretty_key(http_curl_copystr(#I), sizeof(#I)-1, 0, 0); }
        switch (i)
        {
                /* CURLINFO_EFFECTIVE_URL                       =       CURLINFO_STRING +1, */