Skip to content

Commit 5606466

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: TLS 1.0, 1.1 and 1.2 Curl constants - bug #68247
2 parents 0d27b3e + 2b5bffe commit 5606466

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/curl/interface.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,12 @@ PHP_MINIT_FUNCTION(curl)
11941194
REGISTER_CURL_CONSTANT(CURLSSLOPT_ALLOW_BEAST);
11951195
#endif
11961196

1197+
#if LIBCURL_VERSION_NUM >= 0x072200 /* Available since 7.34.0 */
1198+
REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_0);
1199+
REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_1);
1200+
REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_2);
1201+
#endif
1202+
11971203
#if CURLOPT_FTPASCII != 0
11981204
REGISTER_CURL_CONSTANT(CURLOPT_FTPASCII);
11991205
#endif

0 commit comments

Comments
 (0)