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 (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.
Password:
Status:
Package:
Bug Type:
Summary:
From: gem at rellim dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 07:01:27 2024 UTC