Skip to content

Commit

Permalink
Merge pull request #84 from remicollet/php-5.5
Browse files Browse the repository at this point in the history
fix curl reference for latest libcurl
  • Loading branch information
llaville committed Apr 2, 2013
2 parents 54a8285 + f3acd76 commit 11dcd47
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 1 deletion.
7 changes: 7 additions & 0 deletions PHP/CompatInfo/Reference/curl.php
Expand Up @@ -416,6 +416,7 @@ public function getConstants($extension = null, $version = null, $condition = nu
'CURLOPT_LOCALPORTRANGE' => array('5.5.0-dev', ''),
'CURLOPT_LOW_SPEED_LIMIT' => array('4.0.2', ''),
'CURLOPT_LOW_SPEED_TIME' => array('4.0.2', ''),
'CURLOPT_MAIL_AUTH' => array('5.5.0-dev', ''),
'CURLOPT_MAIL_FROM' => array('5.5.0-dev', ''),
'CURLOPT_MAIL_RCPT' => array('5.5.0-dev', ''),
'CURLOPT_MAXCONNECTS' => array('4.0.2', ''),
Expand Down Expand Up @@ -470,6 +471,7 @@ public function getConstants($extension = null, $version = null, $condition = nu
'CURLOPT_RTSP_TRANSPORT' => array('5.5.0-dev', ''),
'CURLOPT_SAFE_UPLOAD' => array('5.5.0-dev', ''),
'CURLOPT_SHARE' => array('5.5.0-dev', ''),
'CURLOPT_SSL_OPTIONS' => array('5.5.0-dev', ''),
'CURLOPT_SOCKS5_GSSAPI_NEC' => array('5.5.0-dev', ''),
'CURLOPT_SOCKS5_GSSAPI_SERVICE' => array('5.5.0-dev', ''),
'CURLOPT_SSH_AUTH_TYPES' => array('5.3.0', ''),
Expand All @@ -492,6 +494,9 @@ public function getConstants($extension = null, $version = null, $condition = nu
'CURLOPT_SSL_VERIFYHOST' => array('4.0.2', ''),
'CURLOPT_SSL_VERIFYPEER' => array('4.0.2', ''),
'CURLOPT_STDERR' => array('4.0.2', ''),
'CURLOPT_TCP_KEEPALIVE' => array('5.5.0-dev', ''),
'CURLOPT_TCP_KEEPIDLE' => array('5.5.0-dev', ''),
'CURLOPT_TCP_KEEPINTVL' => array('5.5.0-dev', ''),
'CURLOPT_TCP_NODELAY' => array('5.2.1', ''),
'CURLOPT_TELNETOPTIONS' => array('5.5.0-dev', ''),
'CURLOPT_TFTP_BLKSIZE' => array('5.5.0-dev', ''),
Expand Down Expand Up @@ -567,6 +572,8 @@ public function getConstants($extension = null, $version = null, $condition = nu
'CURLSSH_AUTH_PASSWORD' => array('5.3.0', ''),
'CURLSSH_AUTH_PUBLICKEY' => array('5.3.0', ''),

'CURLSSLOPT_ALLOW_BEAST' => array('5.5.0-dev', ''),

'CURLUSESSL_ALL' => array('5.5.0-dev', ''),
'CURLUSESSL_CONTROL' => array('5.5.0-dev', ''),
'CURLUSESSL_NONE' => array('5.5.0-dev', ''),
Expand Down
68 changes: 67 additions & 1 deletion tests/Reference/CurlTest.php
Expand Up @@ -121,7 +121,73 @@ protected function setUp()
$this->optionalconstants,
'CURLINFO_LOCAL_IP',
'CURLINFO_LOCAL_PORT',
'CURLINFO_PRIMARY_PORT'
'CURLINFO_PRIMARY_PORT',
'CURLOPT_FNMATCH_FUNCTION',
'CURLOPT_WILDCARDMATCH',
'CURLPROTO_RTMP',
'CURLPROTO_RTMPE',
'CURLPROTO_RTMPS',
'CURLPROTO_RTMPT',
'CURLPROTO_RTMPTE',
'CURLPROTO_RTMPTS',
'CURL_FNMATCHFUNC_FAIL',
'CURL_FNMATCHFUNC_MATCH',
'CURL_FNMATCHFUNC_NOMATCH'
);
}
if ($ver<0x071502) { /* Available since 7.21.2 */
array_push(
$this->optionalconstants,
'CURLPROTO_GOPHER'
);
}
if ($ver<0x071503) { /* Available since 7.21.3 */
array_push(
$this->optionalconstants,
'CURLAUTH_ONLY',
'CURLOPT_RESOLVE'
);
}
if ($ver<0x071504) { /* Available since 7.21.4 */
array_push(
$this->optionalconstants,
'CURLOPT_TLSAUTH_PASSWORD',
'CURLOPT_TLSAUTH_TYPE',
'CURLOPT_TLSAUTH_USERNAME',
'CURL_TLSAUTH_SRP'
);
}
if ($ver<0x071506) { /* Available since 7.21.6 */
array_push(
$this->optionalconstants,
'CURLOPT_ACCEPT_ENCODING',
'CURLOPT_TRANSFER_ENCODING'
);
}
if ($ver<0x071600) { /* Available since 7.22.0 */
array_push(
$this->optionalconstants,
'CURLGSSAPI_DELEGATION_FLAG',
'CURLGSSAPI_DELEGATION_POLICY_FLAG',
'CURLOPT_GSSAPI_DELEGATION'
);
}
if ($ver<0x071800) { /* Available since 7.24.0 */
array_push(
$this->optionalconstants,
'CURLOPT_ACCEPTTIMEOUT_MS',
'CURLOPT_DNS_SERVERS'
);
}
if ($ver<0x071900) { /* Available since 7.25.0 */
array_push(
$this->optionalconstants,
'CURLOPT_MAIL_AUTH',
'CURLOPT_SSL_OPTIONS',
'CURLOPT_TCP_KEEPALIVE',
'CURLOPT_TCP_KEEPIDLE',
'CURLOPT_TCP_KEEPINTVL',
'CURLSSLOPT_ALLOW_BEAST'
);
}
}
Expand Down

0 comments on commit 11dcd47

Please sign in to comment.