Author Topic: PHP Warning: preg_match  (Read 2946 times)

Offline Musikaman

  • Newbie
  • *
  • Posts: 3
PHP Warning: preg_match
« on: August 24, 2016, 03:26:08 PM »
Whatever was happening here was happening a LOT (see below). I have no clue what was triggering it.

Aug 24 12:02:58 mail roundcube: PHP Warning:  preg_match(): Subject is too long in /var/www/roundcubemail-1.2.0/program/lib/Roundcube/rcube_imap_generic.php on line 3790

Code: [Select]
// excluded chars: SP, CTL, ), DEL
                // we do not exclude [ and ] (#1489223)
                if (preg_match('/^([^\x00-\x20\x29\x7F]+)/', $str, $m)) {
                    $result[] = $m[1] == 'NIL' ? null : $m[1];
                    $str      = substr($str, strlen($m[1]));
                }

So, CentOS 7, running PHP 7 and MariaDB 5.5 and RC was installed with the latest version of iRedMail.

The problem stopped after a bit... but DYAMN. I then rebooted this virtual machine. Any ideas on what caused it and how to stop it from happening again?

Aug 24 12:03:28 mail journal: Suppressed 2058529 messages from /system.slice/httpd.service
Aug 24 12:03:58 mail journal: Suppressed 2060452 messages from /system.slice/httpd.service
Aug 24 12:04:28 mail journal: Suppressed 2057022 messages from /system.slice/httpd.service
Aug 24 12:04:58 mail journal: Suppressed 2069886 messages from /system.slice/httpd.service
Aug 24 12:05:28 mail journal: Suppressed 2058918 messages from /system.slice/httpd.service
Aug 24 12:05:58 mail journal: Suppressed 2061954 messages from /system.slice/httpd.service
Aug 24 12:06:28 mail journal: Suppressed 1921071 messages from /system.slice/httpd.service
Aug 24 12:06:58 mail journal: Suppressed 1929040 messages from /system.slice/httpd.service
Aug 24 12:07:28 mail journal: Suppressed 1953940 messages from /system.slice/httpd.service
Aug 24 12:07:58 mail journal: Suppressed 1946950 messages from /system.slice/httpd.service
Aug 24 12:08:28 mail journal: Suppressed 1957166 messages from /system.slice/httpd.service
Aug 24 12:08:58 mail journal: Suppressed 1967568 messages from /system.slice/httpd.service
Aug 24 12:09:28 mail journal: Suppressed 1939345 messages from /system.slice/httpd.service
Aug 24 12:09:58 mail journal: Suppressed 1952151 messages from /system.slice/httpd.service
Aug 24 12:10:28 mail journal: Suppressed 2116665 messages from /system.slice/httpd.service
Aug 24 12:10:58 mail journal: Suppressed 2153447 messages from /system.slice/httpd.service
Aug 24 12:11:28 mail journal: Suppressed 1959175 messages from /system.slice/httpd.service
Aug 24 12:11:58 mail journal: Suppressed 1937119 messages from /system.slice/httpd.service


Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: PHP Warning: preg_match
« Reply #1 on: August 25, 2016, 02:16:17 AM »
Looks like a problem with parsing IMAP response. If you're able to reproduce, enable imap_debug and provide the log.