mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 15:51:51 -04:00
Since devel/pear was upgraded to 1.10.1, mail/pear-Mail_Queue was broken and could not be used, giving the following error: PHP Fatal error: Cannot make static method PEAR::isError() non static in class Mail_Queue in /usr/local/share/pear/Mail/Queue.php on line 126 Upstream bug report: http://pear.php.net/bugs/bug.php?id=20976 PR: 215325 Submitted by: ml@netfence.it Reported by: ml@netfence.it MFH: 2017Q1 Approved by: Jochen Neumeister (maintainer), rakuco (mentor)
11 lines
361 B
PHP
11 lines
361 B
PHP
--- Mail/Queue.php.orig 2016-12-15 17:08:51 UTC
|
|
+++ Mail/Queue.php
|
|
@@ -587,7 +587,7 @@ class Mail_Queue extends PEAR
|
|
* @return boolean whether $value is an MAILQUEUE_ERROR
|
|
* @access public
|
|
*/
|
|
- function isError($value)
|
|
+ static function isError($value)
|
|
{
|
|
return (is_object($value) && is_a($value, 'pear_error'));
|
|
}
|