]> granicus.if.org Git - php/commitdiff
Fix for bug #55767
authorRasmus Lerdorf <rasmus@php.net>
Fri, 23 Sep 2011 13:16:37 +0000 (13:16 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 23 Sep 2011 13:16:37 +0000 (13:16 +0000)
ext/curl/interface.c

index 45e60cd366e29a188c03803cdf37272838021fbf..bf74b5748834cb41ae82c6ae512dbab399f00222 100644 (file)
@@ -2028,6 +2028,11 @@ string_copy:
                                        convert_to_string_ex(current);
 
                                        zend_hash_get_current_key_ex(postfields, &string_key, &string_key_len, &num_key, 0, NULL);
+                                       /* Pretend we have a string_key here */
+                                       if(!string_key) {
+                                               spprintf(&string_key, 0, "%ld", num_key);
+                                               string_key_len = strlen(string_key)+1;
+                                       }
 
                                        postval = Z_STRVAL_PP(current);