ソースを参照

Replaced preg_match with ereg (speed)

Tyler Akins 24 年 前
コミット
de7069a67c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -16,7 +16,7 @@
       global $color, $squirrelmail_language, $imap_general_debug;
 
       $read = fgets($imap_stream, 9096);
-      if (preg_match ("/^\* [0-9]+ FETCH.*{([0-9]+)}/", $read, $regs)) {
+      if (ereg("^\* [0-9]+ FETCH.*{([0-9]+)}", $read, $regs)) {
          $size = $regs[1];
       }