瀏覽代碼

true != 2 in this case

tokul 19 年之前
父節點
當前提交
8a07bba4f7
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/configtest.php

+ 4 - 4
src/configtest.php

@@ -279,7 +279,7 @@ if($use_smtp_tls == 1 || $use_imap_tls == 1) {
     }
 }
 /* starttls extensions */
-if($use_smtp_tls == 2 || $use_imap_tls == 2) {
+if($use_smtp_tls === 2 || $use_imap_tls === 2) {
     if (! function_exists('stream_socket_enable_crypto')) {
         do_err('If you want to use STARTTLS extension, you need stream_socket_enable_crypto() function from PHP 5.1.0 and newer.');
     }
@@ -321,7 +321,7 @@ if($useSendmail) {
     }
 
     /* smtp starttls checks */
-    if ($use_smtp_tls==2) {
+    if ($use_smtp_tls===2) {
         // if something breaks, script should close smtp connection on exit.
 
         // say helo
@@ -430,9 +430,9 @@ while ($line=fgets($stream, 1024)){
 }
 
 /* don't display capabilities before STARTTLS */
-if ($use_imap_tls==2 && stristr($capline, 'STARTTLS') === false) {
+if ($use_imap_tls===2 && stristr($capline, 'STARTTLS') === false) {
     do_err('Your server doesn\'t support STARTTLS.');
-} elseif($use_imap_tls==2) {
+} elseif($use_imap_tls===2) {
     /* try starting starttls */
     fwrite($stream,"A002 STARTTLS\r\n");
     $starttls_line=fgets($stream, 1024);