[Bug 265395] mail/squirrelmail: INBOX does not populate messages after upgrading php 7.4 to php 8.0
Date: Sat, 23 Jul 2022 22:27:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265395 --- Comment #2 from MattS <matt@snowtrek.org> --- (In reply to Zsolt Udvari from comment #1) I'm a novice programmer, so I'm very hesitant to recommend any changes. My understanding is that php 8.0 throws a fatal error when trying to do math functions with a string. This was allowed in php5.6, and gave a warning in php7.4. Since substr() returns a string, I figured I'd try wrapping it in intval to return an integer instead so that could be used in the time zone conversion. I assume this would continue to work in any php version, but I don't know for sure. I'm also not sure if there could be a problem with $iTzc being an integer elsewhere in squirrelmail. -- You are receiving this mail because: You are the assignee for the bug.