php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62318 Missing CURLOPT_SSLVERSION defines
Submitted: 2012-06-13 22:38 UTC Modified: 2012-12-20 07:07 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: gem at rellim dot com Assigned: pierrick
Status: Closed Package: cURL related
PHP Version: 5.3.13 OS: Gentoo
Private report: No CVE-ID:
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 - 18 = ?
Subscribe to this entry?

 
 [2012-06-13 22:38 UTC] gem at rellim dot com
Description:
------------
if you are going to use curl_setopt() to force an SSL version you need to
know some magic constants.  libcurl provides constants to make this easy:
    CURL_SSLVERSION_DEFAULT
    CURL_SSLVERSION_TLSv1
    CURL_SSLVERSION_SSLv2
    CURL_SSLVERSION_SSLv3 

Currently PHP 5.3.13 does not define these constants, and the documentation only gives the values for CURL_SSLVERSION_SSLv2 (2) and CURL_SSLVERSION_SSLv3 (3).  

It would be nice if all these constants were defined in PHP, or at least defined in the documentation.

Test script:
---------------
<?php
        if ( !defined( CURL_SSLVERSION_SSLv3) ) {
                echo "CURL_SSLVERSION_SSLv3 not defined\n";
        }
?>



Expected result:
----------------
no output

Actual result:
--------------
CURL_SSLVERSION_SSLv3 not defined

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-20 07:07 UTC] pierrick@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Added in 5.5 and master branch
 [2012-12-20 07:07 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC