6.0.0-alpha12
6/7/25

[#8155] Horde_Image_gd throws errors with the wrong message
Summary Horde_Image_gd throws errors with the wrong message
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester tenorviol (at) yahoo (dot) com
Created 04/06/2009 (5906 days ago)
Due
Updated 04/06/2009 (5906 days ago)
Assigned 04/06/2009 (5906 days ago)
Resolved 04/06/2009 (5906 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
04/06/2009 04:37:20 PM Michael Rubinsky Comment #6
State ⇒ Resolved
Reply to this comment
Fixed, thanks for the report!
04/06/2009 04:35:09 PM CVS Commit Comment #4 Reply to this comment
04/06/2009 04:31:28 PM Michael Rubinsky Comment #3
State ⇒ Assigned
Assigned to Michael Rubinsky
Reply to this comment
Ok. You can disregard that last question. It seems that PHP will track 
ANY error into $php_errormsg, regardless of if that error would have 
been thrown under the current error_reporting level.
04/06/2009 03:54:32 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
I understand the issue, but I don't see where PEAR is being included 
with E_STRICT explicitly set. Where is this happening?
04/06/2009 03:13:46 PM tenorviol (at) yahoo (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Horde_Image_gd throws errors with the wrong message
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
Reply to this comment
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);


Saved Queries