소스 검색

Declare CN_match/SNI_server_name only for php <5.6

Jordi Boggiano 9 년 전
부모
커밋
72fae0bf70
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 1
src/Composer/Util/RemoteFilesystem.php

@@ -477,7 +477,7 @@ class RemoteFilesystem
         $tlsOptions = array();
 
         // Setup remaining TLS options - the matching may need monitoring, esp. www vs none in CN
-        if ($this->disableTls === false) {
+        if ($this->disableTls === false && PHP_VERSION_ID < 50600) {
             if (!preg_match('{^https?://}', $this->fileUrl)) {
                 $host = $originUrl;
             } else {