Re: Uncaught TypeError: Unsupported operand types: string * int in date.php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Paul, thought I could follow up with you on this and see if you had any
thoughts on my error? Should I file a bug report?

On Mon, Nov 28, 2022 at 1:51 PM Alex <mysqlstudent@xxxxxxxxx> wrote:

> 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: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux