Date: Tue, 07 Feb 2023 20:43:59 +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-545CvVdgG5@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-265395-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-265395-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265395 --- Comment #6 from Zsolt Udvari <uzsolt@uzsolt.hu> --- IMHO revision 14978 ("Fix poorly written timezone parsing") fixes this bug: $ svn diff -r14978:14976 Index: functions/date.php =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- functions/date.php (revision 14978) +++ functions/date.php (revision 14976) @@ -81,16 +81,13 @@ function getGMTSeconds($stamp, $tzc) { break; } $neg =3D false; - if (preg_match('/^([+-]?)(\d\d)(\d\d)$/', $tzc, $matches)) { - if ($matches[1] =3D=3D=3D '-') - $neg =3D true; - $hh =3D $matches[2]; - $mm =3D $matches[3]; - } else { - // anything not listed above and not in the form +0400 - // defaults to UTC - $hh =3D $mm =3D 0; + if (substr($tzc, 0, 1) =3D=3D '-') { + $neg =3D true; + } else if (substr($tzc, 0, 1) !=3D '+') { + $tzc =3D '+'.$tzc; } + $hh =3D substr($tzc,1,2); + $mm =3D substr($tzc,3,2); $iTzc =3D ($hh * 60 + $mm) * 60; if ($neg) $iTzc =3D -1 * (int) $iTzc; /* stamp in gmt */ I send a bug report to update squirrelmail: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269396 --=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-545CvVdgG5>