]> granicus.if.org Git - php/commitdiff
MFH: - Fixed bug #27040 (passing an array of form-fields to CURLOPT_POSTFIELDS does...
authorfoobar <sniper@php.net>
Mon, 26 Jan 2004 00:18:25 +0000 (00:18 +0000)
committerfoobar <sniper@php.net>
Mon, 26 Jan 2004 00:18:25 +0000 (00:18 +0000)
NEWS
ext/curl/curl.c

diff --git a/NEWS b/NEWS
index f72b0d5c7455474706e47d2d42c7fa921f0e891c..fefe73c6fb954d82dc3735bd9e015b52b009188e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,12 +1,14 @@
 PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? Jan 2004, Version 4.3.5
-- Improved the sybase_ct module (Timm)
+- Improved the sybase_ct module: (Timm)
   . Added ability to define a message handler not only globally, but also per 
     connection.
-  . Made sybct.login_timeout changeable at runtime.
-  . Added ini option sybct.packet_size which lets you control the packet size.
+  . Added "sybct.packet_size" php.ini option.
+  . Changed "sybct.login_timeout" php.ini option changeable at runtime.
   . Fixed memory leak in sybase_set_message_handler().
+- Fixed bug #27040 (passing an array of form-fields to CURLOPT_POSTFIELDS
+  does not work). (Ilia, Jani)
 - Fixed bug #26974 (rename() doesn't check the destination file against 
   safe_mode/open_basedir). (Ilia)
 - Fixed bug #26973 (*printf() '+' modifier broken). (Jani)
index ead6cd148b62877f59d1d45b143c0fad19250283..e583a675cd0c9783afcc5f87fb2b9546713447c7 100644 (file)
@@ -886,7 +886,7 @@ PHP_FUNCTION(curl_setopt)
                                                error = curl_formadd(&first, &last, 
                                                                                         CURLFORM_COPYNAME, string_key,
                                                                                         CURLFORM_NAMELENGTH, string_key_len - 1,
-                                                                                        CURLFORM_PTRCONTENTS, postval, 
+                                                                                        (ZVAL_REFCOUNT(*zvalue) > 1 ? CURLFORM_PTRCONTENTS : CURLFORM_COPYCONTENTS), postval, 
                                                                                         CURLFORM_CONTENTSLENGTH, Z_STRLEN_PP(current),
                                                                                         CURLFORM_END);
                                        }