Menu

#2871 SquirrelMail not compatible with PHP8.1

Produces PHP errors
closed-out-of-date
None
1
2025-03-09
2025-02-21
No

Creating this because bug #2857 was closed, and I don't know if updating it will be seen. Bug #2857 was closed saying "1.4.23 ... contains fixes for the issues you are seeing and runs on PHP8."

Ubuntu 22.04LTS, SquirrelMail 1.4.23, PHP8.1

SquirrelMail 1.4.23 still has all the issues that were reported in bug #2857 - use of curly braces where not allowed, in addition to built-ins that were removed as far back as PHP7.2.

For instance (one of many):
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/squirrelmail/functions/mime.php on line 875

as well as
PHP Warning: session_set_cookie_params(): Session cookie parameters cannot be changed when a session is active in /usr/share/squirrelmail/functions/global.php on line 476

PHP Fatal error: Uncaught Error: Call to undefined function each() in /usr/share/squirrelmail/functions/imap_general.php:770

PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /usr/share/squirrelmail/functions/mime.php:706

Discussion

  • Paul Lesniewski

    Paul Lesniewski - 2025-03-09

    It looks like you are not running an up-to-date version of 1.4.23-svn. See here:
    https://sourceforge.net/p/squirrelmail/code/HEAD/tree/branches/SM-1_4-STABLE/squirrelmail/functions/mime.php
    Line 875 has no curly braces. The other errors also do not appear in the current code. Please grab a recent snapshot from our downloads page and these issues should all be resolved for you.

    Thanks for your participation

     
  • Paul Lesniewski

    Paul Lesniewski - 2025-03-09
    • status: open --> closed-out-of-date
    • assigned_to: Paul Lesniewski
     

Log in to post a comment.

MongoDB Logo MongoDB