** Description changed: - In Ubuntu 16.04, Squirrelmail has a regression from 14.04. Certain - messages are missing the subject or message body. Investigation reveals - that this is due to the removal of the /e modifier in preg_replace in - PHP 7. The server logs show numerous error messages similar to the - following: + [Impact] - [Mon Oct 24 19:40:36.248894 2016] [:error] [pid 4699] [client - AAA.BBB.CCC.DDD:12345] PHP Warning: preg_replace(): The /e modifier is - no longer supported, use preg_replace_callback instead in - /usr/share/squirrelmail/functions/decode/utf_8.php on line 87, referer: - xyz + * In Ubuntu 16.04, Squirrelmail has a regression from 14.04. Certain messages are missing the subject or message body. Investigation reveals that this is due to the removal of the /e modifier in preg_replace in PHP 7. The server logs show numerous error messages similar to the following: + + [Mon Oct 24 19:40:36.248894 2016] [:error] [pid 4699] [client AAA.BBB.CCC.DDD:12345] PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /usr/share/squirrelmail/functions/decode/utf_8.php on line 87, referer: xyz - Upstream has resolved this issue: + * Upstream has resolved this issue: https://sourceforge.net/p/squirrelmail/code/14359/ - After applying the patch in 14359 (plus the trivial 14347 which is + * After applying the patch in 14359 (plus the trivial 14347 which is necessary to make 14359 apply cleanly), the problems go away. + + [Test Case] + + * Install and configure squirrelmail. Determine if all emails have + subject and message body. + + (@Scott, do you have a better test case?) + + [Regression Potential] + + * Squirrelmail as currently packaged is broken in 16.04, 16.10 and + 17.04, due to syntax changes in PHP7.0. The risk for regression is + consequentially very low, as the fix involves backporting upstream fixes + that make the code-base PHP7.0-compliant. + + --- PPA with the patches applied: https://launchpad.net/~swt- techie/+archive/ubuntu/squirrelmail
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1636333 Title: Squirrelmail - missing Subject/Body on some messages in 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/squirrelmail/+bug/1636333/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs