|  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
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 (profile)
Status: Closed Package: cURL related
PHP Version: 5.3.13 OS: Gentoo
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gem at rellim dot com
New email:
PHP Version: OS:


 [2012-06-13 22:38 UTC] gem at rellim dot com
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:

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:
        if ( !defined( CURL_SSLVERSION_SSLv3) ) {
                echo "CURL_SSLVERSION_SSLv3 not defined\n";

Expected result:
no output

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-20 07:07 UTC]
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

 For Windows:
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]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 23:05:54 2022 UTC