Problems with Mail_Queue and PHP 7.1
| From: | Andrea Venturoli | Date: | Wed, 28 Nov 2018 09:23:13 +0000 |
| Subject: | Problems with Mail_Queue and PHP 7.1 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-32283@lists.php.net to get a copy of this message | ||
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 269Is it ok to comment this line? TIA. [1]
http://pear.php.net/manual/en/package.mail.mail-queue.mail-queue.tutorial.php