Date: Fri, 22 Jul 2022 23:29:44 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265395] mail/squirrelmail: INBOX does not populate messages after upgrading php 7.4 to php 8.0 Message-ID: <bug-265395-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265395 Bug ID: 265395 Summary: mail/squirrelmail: INBOX does not populate messages after upgrading php 7.4 to php 8.0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: matt@snowtrek.org CC: uzsolt@uzsolt.hu Flags: maintainer-feedback?(uzsolt@uzsolt.hu) CC: uzsolt@uzsolt.hu FreeBSD 12.3 After recently upgrading from php7.4 to php 8.0 I noticed that in Squirrelm= ail my Inbox stopped populating messages. Other folders(sent,junk,deleted,etc)continued to populate correctly. End-user is = not presented with any errors. Not all users experiencing the issue. Error log shows: [Fri Jul 22 2022] [php:error] [pid ] [client 192.] PHP Fatal error: Uncaug= ht TypeError: Unsupported operand types: string * int in squirrelmail/functions/date.php:91\nStack trace:\n#0 squirrelmail/functions/date.php(463): getGMTSeconds()\n#1 squirrelmail/functions/imap_messages.php(941): getTimeStamp()\n#2 squirrelmail/functions/mailbox_display.php(628): sqimap_get_small_header_list()\n#3 squirrelmail/functions/mailbox_display.php(407): fillMessageArray()\n#4 squirrelmail/functions/mailbox_display.php(518): getSelfSortMessages()\n#5 squirrelmail/src/right_main.php(238): showMessagesForMailbox()\n#6 {main}\n= =20 thrown in squirrelmail/functions/date.php on line 91, referer: https:// I made the following change to date.php and everything started working again and the errors no longer show in the log. I'm not sure if this is a proper = way to fix this bug. date.php lines 89-91: -- $hh =3D substr($tzc,1,2); -- $mm =3D substr($tzc,3,2); ++ $hh =3D intval(substr($tzc,1,2)); ++ $mm =3D intval(substr($tzc,3,2)); $iTzc =3D ($hh * 60 + $mm) * 60; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265395-7788>