1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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
|