Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.6

Bug #14460 Reference to $this in static function
Submitted: 2008-08-06 13:34 UTC
From: jgazquezmcr Assigned: doconnor
Status: Closed Package: Image_Color (version 1.0.2)
PHP Version: 5.2.3 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-08-06 13:34 UTC] jgazquezmcr (Julio Gazquez)
Description: ------------ hsv2hex() calls rgb2hex() using $this-> instead of Image_Color::, therefore static calls to hsv2hex() fails. Test script: --------------- <?php require_once('Image/Color.php'); echo Image_Color::hsv2hex(0,255,255); Expected result: ---------------- FF0000 Actual result: -------------- Error as standalone hsv2hex() function doesn't exist in the context.

Comments

 [2008-10-26 15:51 UTC] doconnor (Daniel O'Connor)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.