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

Bug #14887 E_NOTICE when setColors() and changeLightness() called
Submitted: 2008-10-26 17:24 UTC
From: doconnor Assigned: doconnor
Status: Closed Package: Image_Color (version CVS)
PHP Version: 5.2.4 OS:
Roadmaps: (Not assigned)    

 [2008-10-26 17:24 UTC] doconnor (Daniel O'Connor)
Description: ------------ If you call $color->setColors("hex here", null); $color->changeBrightness(1); you get an e_notice. Test script: --------------- pear run-tests Expected result: ---------------- Tests pass Actual result: -------------- clockwerx@clockwerx-desktop:~/pear/Image_Color$ php Tests/AllTests.php PHPUnit 3.3.1 by Sebastian Bergmann. ....EE.................................. Time: 0 seconds There were 2 errors: 1) testChangeLightness_DefaultParam_SingleColor(ColorTest) Undefined offset: 0 /home/clockwerx/pear/Image_Color/Color.php:226 /home/clockwerx/pear/Image_Color/Color.php:226 /home/clockwerx/pear/Image_Color/Tests/ColorTest.php:53 /home/clockwerx/pear/Image_Color/Tests/AllTests.php:13 /home/clockwerx/pear/Image_Color/Tests/AllTests.php:25 2) testChangeLightness_NegativeParam_SingleColor(ColorTest) Undefined offset: 0 /home/clockwerx/pear/Image_Color/Color.php:226 /home/clockwerx/pear/Image_Color/Color.php:226 /home/clockwerx/pear/Image_Color/Tests/ColorTest.php:59 /home/clockwerx/pear/Image_Color/Tests/AllTests.php:13 /home/clockwerx/pear/Image_Color/Tests/AllTests.php:25 FAILURES! Tests: 40, Assertions: 69, Errors: 2.


 [2008-10-26 17:27 UTC] doconnor (Daniel O'Connor)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.