Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439404 - mail-client/squirrelmail-1.4.22 is incompatible with php-5.4
Summary: mail-client/squirrelmail-1.4.22 is incompatible with php-5.4
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-23 14:17 UTC by Horst Prote
Modified: 2014-04-05 14:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Prote 2012-10-23 14:17:30 UTC
After switching to php-5.4 I only see a white page at login to squirrelmail and found this error in the apache logs:
PHP Fatal error:  Call to undefined function session_unregister() in /var/www/...


Reproducible: Always

Steps to Reproduce:
1. emerge php version 5.4
2. eselect php set apache2 php5.4
3. /etc/init.d/apache2 restart
4. login to squirrelmail



According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664895 and the paragraph "ANNOUNCE: PHP 5.4 Compatibility" on http://squirrelmail.org/index.php this should be fixed in the "Stable version snapshots (1.4.23-svn)" (see http://squirrelmail.org/download.php).
Comment 1 Eray Aslan gentoo-dev 2012-10-24 13:13:44 UTC
mail-client/squirrelmail-1.4.23_pre20121024 is added to the tree (hard mask for now).  Can you please test and see if it works with php-5.4?  Thank you.
Comment 2 Horst Prote 2012-10-25 09:35:32 UTC
Tested mail-client/squirrelmail-1.4.23_pre20121024 with php-5.4 but the error remains.
Comment 3 A. Person 2012-10-25 14:21:28 UTC
I'm having problems with php-5.4 and squirrelmail too although I don't get the blank page that Horst does.  Certain lines of some messages don't appear in squirrelmail but do appear normally in claws-mail.  This started when I upgraded to php-5.4.  I've just upgraded to squirrelmail-1.4.23_pre20121024 and restarted apache2 but the problem persists.
Comment 4 Eray Aslan gentoo-dev 2012-10-25 17:10:24 UTC
(In reply to comment #3)
> I'm having problems with php-5.4 and squirrelmail too although I don't get
> the blank page that Horst does.  Certain lines of some messages don't appear
> in squirrelmail but do appear normally in claws-mail.

This looks like a separate bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=3525227&group_id=311&atid=100311

Do I understand you correctly that squirrelmail-1.4.23_pre20121024 works for you with php-5.4 otherwise?
Comment 5 Horst Prote 2012-10-26 11:56:47 UTC
Sorry, should have read the error log more carefully or post the complete message here:
PHP Fatal error:  Call to undefined function session_unregister() in /var/www/<hostname>/htdocs-secure/squirrelmail/plugins/login_alias/functions.php on line 64, referer: https://<hostname>/src/login.php

So incompatible with php-5.4 is the login_alias plugin, which I installed by just unpacking the tgz in /var/www/<hostname>/htdocs-secure/squirrelmail/plugins/.

It seems that rest of squirrelmail uses sqsession_unregister() defined in it's own functions/global.php, so I replaced all calls of session_unregister() to sqsession_unregister() in the login_alias plugin (as there is no newer version than my 2.5 on squirrelmail.org) and the error is fixed.

Finally I reverted back to squirrelmail-1.4.22: It also works with php-5.4.
Comment 6 Stefan 2014-04-05 14:12:05 UTC
> Finally I reverted back to squirrelmail-1.4.22: It also works with php-5.4.
So, can you please revert the version pinning for PHP-5.3 in the ebuild?

Since PHP-5.4 is stable, the pinning forces the installation of PHP-5.3 in an extra slot when installing squirrelmail.