PHP5 -> PHP7 with SquirrelMail 1.4.22 causes large quantity of error_log warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Moved my working SquirrelMail 1.4.22 installation/config to the new 
Ubuntu 16.04 LTR platform.  Now occasionally INBOX message lines are 
missing [From and/or Subject will be blank, the line with Date istill 
shows] and I see these messages in my Apache 2.4 error_log:

[Sat Jul 09 22:11:22.905334 2016] [:error] [pid 18805] [client 
50.46.232.213:41874] PHP Warning: *preg_replace()*: The */e modifier* is 
no longer supported, use *preg_replace_callback* instead in 
/home/www/public/squirrelmail/functions/*mime.php on line 705*, referer: 
https://mydomain.com/squirrelmail/src/webmail.php

[Sat Jul 09 22:11:22.930801 2016] [:error] [pid 18805] [client 
50.46.232.213:41874] PHP Warning: *preg_replace()*: The */e modifier* is 
no longer supported, use *preg_replace_callback* instead in 
/home/www/public/squirrelmail/functions/decode/*utf_8.php on line 77*, 
referer: https://mydomain.com/squirrelmail/src/webmail.php
[Sat Jul 09 22:11:22.930816 2016] [:error] [pid 18805] [client 
50.46.232.213:41874] PHP Warning: *preg_replace()*: The */e modifier* is 
no longer supported, use *preg_replace_callback* instead in 
/home/www/public/squirrelmail/functions/decode/*utf_8.php on line 82*, 
referer: https://mydomain.com/squirrelmail/src/webmail.php
[Sat Jul 09 22:11:22.930827 2016] [:error] [pid 18805] [client 
50.46.232.213:41874] PHP Warning: *preg_replace()*: The */e modifier* is 
no longer supported, use *preg_replace_callback* instead in 
/home/www/public/squirrelmail/functions/decode/*utf_8.php on line 87*, 
referer: https://mydomain.com/squirrelmail/src/webmail.php

Good news is it looks like only 4 lines in two files containing 
preg_replace() need to be modified for PHP7 to use a  
preg_replace_callback().  I can edit the files myself if I know what to 
type.  Anybody solved this yet?  What is the exact format of the new 
preg_replace_callback() function for these four source code lines?

I spent over an hour searching the web and SquirrelMail mailing list 
archives and didn't find anything I can use to solve this issue. Now I'm 
asking for help!  BTW, my users like SquirrelMail and are patiently 
waiting for me to find an answer.

*
Installation Versions*:

- *SquirrelMail 1.4.22
*Plugin's:*
*  + administrator
   + calendar
   + fortune
   + gpg
   + html_mail
   + spamcop
   + squirrelspell

/Checking PHP configuration/...
     PHP version 7.0.4-7ubuntu2.1 OK.
     Running as www-data(33) / www-data(33)
     display_errors:
     error_reporting: 22527
     variables_order OK: GPCS.
     PHP extensions OK. Dynamic loading is disabled.
   ... Congratulations, your SquirrelMail setup looks fine to me!

- *PHP 7.0.4-7ubuntu2.1* (cli) ( NTS )
     Copyright (c) 1997-2016 The PHP Group
     Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
         with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend 
Technologies

- Apache Server version: *Apache/2.4.18 (Ubuntu)*
     Server built:   2016-04-15T18:00:57

- Dovecot IMAP

- Frontier.com SMTP server

- OS: Ubuntu Server / Ubuntu Desktop 16.04 LTR

- SqurrelMail 1.4.22 installed manually from tar package many years ago, 
and still working, except as noted.

- Firefox 47.0 browser


Thank you,
Craig
Craig Arno - Signature Block
------------------------------------------------------------------------

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux