summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-09-23 13:16:37 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-09-23 13:16:37 +0000
commit659fc4b0f44c164deae62b1ed30385770876369f (patch)
tree776edbc523ab39ed1baa247e97dda8a7dfe9ef03 /ext/curl/interface.c
parent7dae4e5d398a6b15c72749f9bf15e49c77f378f4 (diff)
downloadphp-git-659fc4b0f44c164deae62b1ed30385770876369f.tar.gz
Fix for bug #55767
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 45e60cd366..7659d57ada 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -2029,6 +2029,12 @@ string_copy:
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);
/* The arguments after _NAMELENGTH and _CONTENTSLENGTH