Problems with Mail_Queue and PHP 7.1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problems with Mail_Queue and PHP 7.1

Andrea Venturoli
Hello.

Since I upgraded to PHP 7.1 I'm experiencing a couple of issues:

First, WRT the tutorial (1), I get a synthax error at the following two
lines:

>$mail_queue =& new Mail_Queue($db_options, $mail_options);
>...
>$mime =& new Mail_mime();

Substituting =& with = seems to solve. Is this correction ok?



Once I get past this, I get:
> PHP Fatal error:  Cannot unset $this in /usr/local/share/pear/Mail/Queue.php on line 269

Is it ok to comment this line?



TIA.
       


[1]
>  http://pear.php.net/manual/en/package.mail.mail-queue.mail-queue.tutorial.php

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php