|  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
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:
Solve the problem:
25 - 16 = ?
Subscribe to this entry?

 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 02:01:28 2024 UTC