diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2011-09-23 13:16:37 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2011-09-23 13:16:37 +0000 |
commit | f5ec360df75f61aa65b3a78ba79f7c40d51776b6 (patch) | |
tree | b697fabfdad163e832f5d8e32739a97d018e4db1 /ext/curl/interface.c | |
parent | d938844d8fa070f3b2f53e1b3cbef6790ca50da7 (diff) | |
download | php-git-f5ec360df75f61aa65b3a78ba79f7c40d51776b6.tar.gz |
Fix for bug #55767
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r-- | ext/curl/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 45e60cd366..bf74b57488 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -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); |