Req #62318 [Opn->Csd]: Missing CURLOPT_SSLVERSION defines

From: Date: Thu, 20 Dec 2012 07:07:05 +0000
Subject: Req #62318 [Opn->Csd]: Missing CURLOPT_SSLVERSION defines
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-175481@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62318&edit=1

 ID:                 62318
 Updated by:         pierrick@php.net
 Reported by:        gem at rellim dot com
 Summary:            Missing CURLOPT_SSLVERSION defines
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
 Package:            cURL related
 Operating System:   Gentoo
 PHP Version:        5.3.13
-Assigned To:        
+Assigned To:        pierrick
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2012-06-13 22:38:49] 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


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62318&edit=1


Thread (2 messages)

« previous php.bugs (#175481) next »