|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-20 07:07 UTC] pierrick@php.net
[2012-12-20 07:07 UTC] pierrick@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: pierrick
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 18:00:01 2025 UTC |
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