소스 검색

Shouldn't let PHP generate an error in this case, if we are handling a
connection failure

jangliss 21 년 전
부모
커밋
c8be9a65a7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -563,7 +563,7 @@ function sqimap_create_stream($server,$port,$tls=false) {
         }
     }
 
-    $imap_stream = fsockopen($server, $port, $error_number, $error_string, 15);
+    $imap_stream = @fsockopen($server, $port, $error_number, $error_string, 15);
 
     /* Do some error correction */
     if (!$imap_stream) {