Uncaught TypeError: Unsupported operand types: string * int in date.php
Alex <[email protected]> Mon, 28 Nov 2022 13:51:28 -0500
| Newsgroups | gmane.mail.squirrelmail.user |
|---|---|
| Message-ID | <CAB1R3sit-VGhq=U9HXa488jgGq67FcWQ2kyU7U2anGURgP=ARA@mail.gmail.com> |
Hi,
Most recent 1.4.23-svn appears to have a problem with emails with corrupt
date fields?
Fatal error: Uncaught TypeError: Unsupported operand types: string * int in
/usr/share/squirrelmail/functions/date.php:91 Stack trace: #0
/usr/share/squirrelmail/functions/date.php(463): getGMTSeconds(1583293098,
'+UT') #1 /usr/share/squirrelmail/functions/imap_messages.php(946):
getTimeStamp(Array) #2
/usr/share/squirrelmail/functions/mailbox_display.php(628):
sqimap_get_small_header_list(Resource id #1, Array, 999999) #3
/usr/share/squirrelmail/functions/mailbox_display.php(407):
fillMessageArray(Resource id #1, Array, 3291, 999999) #4
/usr/share/squirrelmail/functions/mailbox_display.php(518):
getSelfSortMessages(Resource id #1, 1, 999999, 3291, '0', Array) #5
/usr/share/squirrelmail/src/right_main.php(238):
showMessagesForMailbox(Resource id #1, '2020', 3291, 1, '0', Array, 15,
false) #6 {main} thrown in /usr/share/squirrelmail/functions/date.php on
line 91
87 $tzc = '+'.$tzc;
88 }
89 $hh = substr($tzc,1,2);
90 $mm = substr($tzc,3,2);
91 $iTzc = ($hh * 60 + $mm) * 60;
92 if ($neg) $iTzc = -1 * (int) $iTzc;
93 /* stamp in gmt */
94 $stamp -= $iTzc;
95 /** now find what the server is at **/
96 $current = date('Z', time());
There are like 3200 messages in the folder where this occurs, so I have no
idea which message caused it or what the problem might be. Any ideas? How
can I help troubleshoot this further?
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users