sniper Sun Jan 25 19:18:26 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src NEWS
/php-src/ext/curl curl.c
Log:
MFH: - Fixed bug #27040 (passing an array of form-fields to CURLOPT_POSTFIELDS does
not work).
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.541&r2=1.1247.2.542&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.541 php-src/NEWS:1.1247.2.542
--- php-src/NEWS:1.1247.2.541 Sun Jan 25 19:15:10 2004
+++ php-src/NEWS Sun Jan 25 19:18:24 2004
@@ -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)
http://cvs.php.net/diff.php/php-src/ext/curl/curl.c?r1=1.124.2.14&r2=1.124.2.15&ty=u
Index: php-src/ext/curl/curl.c
diff -u php-src/ext/curl/curl.c:1.124.2.14 php-src/ext/curl/curl.c:1.124.2.15
--- php-src/ext/curl/curl.c:1.124.2.14 Thu Oct 16 05:08:42 2003
+++ php-src/ext/curl/curl.c Sun Jan 25 19:18:25 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: curl.c,v 1.124.2.14 2003/10/16 09:08:42 sniper Exp $ */
+/* $Id: curl.c,v 1.124.2.15 2004/01/26 00:18:25 sniper Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -886,7 +886,7 @@
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);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php