[Tickets #8155] Horde_Image_gd throws errors with the wrong message

bugs at horde.org bugs at horde.org
Mon Apr 6 15:13:46 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8155
------------------------------------------------------------------------------
  Ticket             | 8155
  Created By         | tenorviol at yahoo.com
  Summary            | Horde_Image_gd throws errors with the wrong message
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


tenorviol at yahoo.com (2009-04-06 11:13) wrote:

The PEAR::raiseError call is causing the following error message to  
appear on my system Mac OSX.

imageCreateFromString: Non-static method PEAR::raiseError() should not  
be called statically, assuming $this from incompatible context

This is a problem because it is the wrong error message, generated  
from including PEAR.php at E_STRICT debug level.  Suggest changing the  
following lines like so:

BEFORE

require_once 'PEAR.php';
$result = PEAR::raiseError($function . ': ' . $php_errormsg);

AFTER

$errormsg = $php_errormsg;
require_once 'PEAR.php';
$result = PEAR::raiseError($function . ': ' . $errormsg);







More information about the bugs mailing list