[PEAR-BUG] Bug #20976 [Com]: Making static method non static - isError

[email protected] ("cody") Wed, 11 May 2016 12:34:52 -0400 (EDT)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=20976&edit=1

 ID:               20976
 Comment by:       cody
 Reported By:      dmc187 at dmc187 dot de
 Summary:          Making static method non static - isError
 Status:           Open
 Type:             Bug
 Package:          Mail_Queue
 Operating System: Linux CentOS
 Package Version:  1.2.7
 PHP Version:      5.4.45
 New Comment:

It is still broken, patch-link doesnt work (anymore?) !


Previous Comments:
------------------------------------------------------------------------

[2016-03-17 09:01:24] artur

link for patch dose't work ((

------------------------------------------------------------------------

[2015-10-29 11:14:52] mariom

Added #patch bug:20976;patch:iserror.patch;revision:1446117292;.

------------------------------------------------------------------------

[2015-10-29 11:13:01] mariom

Description:
------------
Hi,

Mail_Queue is broken, as it tries to make static method PEAR::isError()
nonstatic on line 590 in Mail_Queue.php

Just adding the keyword "static" fixes the problem.


Test script:
---------------
<?php
printf("before\n");
require_once 'Mail/Queue.php';
printf("after\n");

Expected result:
----------------
before
after

Actual result:
--------------
before
PHP Fatal error:  Cannot make static method PEAR::isError() non static
in class Mail_Queue in /usr/share/pear/Mail/Queue.php on line 126

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=20976&edit=1