Permalink
Browse files

Implement fix for bug #46439 - add CURLFile class for safer uploads

  • Loading branch information...
1 parent 420bcc1 commit a9d013bb020591cb6306afa2748da80f68b81f56 @smalyshev smalyshev committed Jan 29, 2013
View
@@ -5,6 +5,10 @@ PHP NEWS
. Fixed bug # 60833 (self, parent, static behave inconsistently
case-sensitive). (Stas, mario at include-once dot org)
+- cURL:
+ . Implemented FR #46439 - added CURLFile for safer file uploads.
+ (Stas)
+
24 Jan 2013, PHP 5.5.0 Alpha 4
- Core:
View
@@ -155,6 +155,8 @@ PHP 5.5 UPGRADE NOTES
bool(true) was returned.
- setcookie(), setrawcookie() and ext/session now send Max-Age headers alongside
Expires headers. (see https://wiki.php.net/rfc/cookie_max-age)
+- curl_setopt now accepts new option CURLOPT_SAFE_UPLOAD and CURLFile object for
+ safer file uploads (see https://wiki.php.net/rfc/curl-file-upload)
========================================
5. New Functions
@@ -167,6 +169,9 @@ PHP 5.5 UPGRADE NOTES
- password_needs_rehash()
- password_verify()
+- cURL:
+ - curl_file_create
+
- Hash:
- hash_pbkdf2()
@@ -267,6 +272,9 @@ PHP 5.5 UPGRADE NOTES
- IntlRuleBasedBreakIterator
- IntlCodePointBreakIterator
+- cURL:
+ - CURLFile
+
========================================
7. Removed Extensions
========================================
@@ -286,6 +294,9 @@ PHP 5.5 UPGRADE NOTES
- mysqli:
- Added MYSQLI_SERVER_PUBLIC_KEY constant to be used with mysqli_options()
+- cURL:
+ - Added CURLOPT_SAFE_UPLOAD to be used with curl_setopt().
+
========================================
10. Changes to INI File Handling
========================================
View
@@ -149,6 +149,6 @@ int main(int argc, char *argv[])
AC_DEFINE(PHP_CURL_URL_WRAPPERS,1,[ ])
fi
- PHP_NEW_EXTENSION(curl, interface.c multi.c share.c streams.c, $ext_shared)
+ PHP_NEW_EXTENSION(curl, interface.c multi.c share.c streams.c curl_file.c, $ext_shared)
PHP_SUBST(CURL_SHARED_LIBADD)
fi
View
@@ -13,7 +13,7 @@ if (PHP_CURL != "no") {
&& (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "curl", PHP_CURL))) ||
(PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "curl", PHP_CURL)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED)))
) {
- EXTENSION("curl", "interface.c multi.c share.c streams.c", true);
+ EXTENSION("curl", "interface.c multi.c share.c streams.c curl_file.c", true);
AC_DEFINE('HAVE_CURL', 1, 'Have cURL library');
AC_DEFINE('HAVE_CURL_SSL', 1, 'Have SSL suppurt in cURL');
AC_DEFINE('HAVE_CURL_EASY_STRERROR', 1, 'Have curl_easy_strerror in cURL');
Oops, something went wrong.

0 comments on commit a9d013b

Please sign in to comment.