Re: Squirrelmail returns blank page after send (PHP 7: Warning: contains logs )

Kevin Buckley <[email protected]> Mon, 5 Dec 2016 16:27:50 +1300
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>
On 05/12/16 15:10, Kevin Buckley wrote:
> OS              NetBSD 7.0_STABLE
> Software Stack  PkgSrc
> SquirrelMail    1.4.23pre14605
> Apache 2        Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1u DAV/2
> PHP/7.0.13
> PHP             7.0.135.6.28-1


> I tried adding in "proper" __constructor functions, in the manner of the
> fix described here
>
>     - https://cweiske.de/tagebuch/php4-constructors-php7.htm
>
> to those four files, however that just moves the same issue down into
> (or possibly across) the SquirrelMail stack, and we see some other
> webserver error logs, three indicating similar "deprecated constructor"
> stuff from different fucntions:
>
> squirrelmail/functions/addressbook.php
> squirrelmail/functions/abook_local_file.php
> squirrelmail/functions/abook_ldap_server.php
>
> however, two more exhibit different errors
>
> PHP Deprecated:  Non-static method Message::parseStructure() should not
> be called statically in
>
> squirrelmail/functions/mime.php  on line 36,
> squirrelmail/class/mime/Message.class.php on line 296,
>
> both with the same referrer
>
> referer:
> https://our.host/squirrelmail/src/right_main.php?PG_SHOWALL=0&sort=0&startMessage=1&mailbox=INBOX

A closer look at the logs (you'll appreciate that we have a lot of lines 
in the logs after the update) suggests that the two

PHP Deprecated:  Non-static method Message::parseStructure() should not 
not be called statically in

messages actually occured along with the

class/html.class.php
class/mimeContentType.class.php
class/mimeDisposition.class.php
class/mimeLanguage.class.php

not _after_ I'd tried the "adding an __constructor()" fix, so it's
possible that what we're seeing isn't purely "PHP Deprecated" related.

I'll try and feed back, as I m able to determine more.


------------------------------------------------------------------------------
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel