summaryrefslogtreecommitdiffstats
path: root/0018-new-curl-change-in-php-5.5.patch
diff options
context:
space:
mode:
Diffstat (limited to '0018-new-curl-change-in-php-5.5.patch')
-rw-r--r--0018-new-curl-change-in-php-5.5.patch75
1 files changed, 75 insertions, 0 deletions
diff --git a/0018-new-curl-change-in-php-5.5.patch b/0018-new-curl-change-in-php-5.5.patch
new file mode 100644
index 0000000..ab5bd0a
--- /dev/null
+++ b/0018-new-curl-change-in-php-5.5.patch
@@ -0,0 +1,75 @@
+From adf248bd5595224095066fe4cacddb34f4cd6100 Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora@famillecollet.com>
+Date: Mon, 4 Feb 2013 09:47:54 +0100
+Subject: [PATCH 1/6] new curl change in php 5.5
+
+---
+ PHP/CompatInfo/Reference/curl.php | 27 +++++++++++++++++++++++++++
+ tests/Reference/CurlTest.php | 1 +
+ 2 files changed, 28 insertions(+)
+
+diff --git a/PHP/CompatInfo/Reference/curl.php b/PHP/CompatInfo/Reference/curl.php
+index 19bf6f8..cbfc2f0 100644
+--- a/PHP/CompatInfo/Reference/curl.php
++++ b/PHP/CompatInfo/Reference/curl.php
+@@ -83,6 +83,7 @@ class PHP_CompatInfo_Reference_Curl
+ 'curl_error' => array('4.0.3', ''),
+ 'curl_escape' => array('5.5.0-dev', ''),
+ 'curl_exec' => array('4.0.2', ''),
++ 'curl_file_create' => array('5.5.0-dev', ''),
+ 'curl_getinfo' => array('4.0.4', ''),
+ 'curl_init' => array('4.0.2', ''),
+ 'curl_multi_add_handle' => array('5.0.0', ''),
+@@ -467,6 +468,7 @@ class PHP_CompatInfo_Reference_Curl
+ 'CURLOPT_RTSP_SESSION_ID' => array('5.5.0-dev', ''),
+ 'CURLOPT_RTSP_STREAM_URI' => array('5.5.0-dev', ''),
+ 'CURLOPT_RTSP_TRANSPORT' => array('5.5.0-dev', ''),
++ 'CURLOPT_SAFE_UPLOAD' => array('5.5.0-dev', ''),
+ 'CURLOPT_SHARE' => array('5.5.0-dev', ''),
+ 'CURLOPT_SOCKS5_GSSAPI_NEC' => array('5.5.0-dev', ''),
+ 'CURLOPT_SOCKS5_GSSAPI_SERVICE' => array('5.5.0-dev', ''),
+@@ -577,4 +579,29 @@ class PHP_CompatInfo_Reference_Curl
+ return $constants;
+ }
+
++ /**
++ * Gets informations about classes
++ *
++ * @param string $extension (optional) NULL for PHP version,
++ * TRUE if extension version
++ * @param string $version (optional) php or extension version
++ * @param string $condition (optional) particular relationship with $version
++ * Same operator values as used by version_compare
++ *
++ * @return array
++ */
++ public function getClasses($extension = null, $version = null, $condition = null)
++ {
++ $this->setFilter(func_get_args());
++
++ $classes = array();
++
++ $release = '5.5.0'; // soon
++ $items = array(
++ 'CURLFile' => array('5.5.0-dev', ''),
++ );
++ $this->applyFilter($release, $items, $classes);
++
++ return $classes;
++ }
+ }
+diff --git a/tests/Reference/CurlTest.php b/tests/Reference/CurlTest.php
+index 473e30b..9deb8db 100644
+--- a/tests/Reference/CurlTest.php
++++ b/tests/Reference/CurlTest.php
+@@ -37,6 +37,7 @@ class PHP_CompatInfo_Reference_CurlTest
+ * @covers PHP_CompatInfo_Reference_Curl::getExtensions
+ * @covers PHP_CompatInfo_Reference_Curl::getFunctions
+ * @covers PHP_CompatInfo_Reference_Curl::getConstants
++ * @covers PHP_CompatInfo_Reference_Curl::getFunctions
+ * @return void
+ */
+ protected function setUp()
+--
+1.7.11.7
+