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

Bug #19626 Going from Light to Dark color does not work
Submitted: 2012-09-30 01:09 UTC
From: jnovack Assigned: doconnor
Status: Closed Package: Console_Color2 (version 0.1.1)
PHP Version: 5.3.3 OS: Agnostic
Roadmaps: (Not assigned)    

 [2012-09-30 01:09 UTC] jnovack (Justin Novack)
Description: ------------ Printing the same color as a Light and then switching to it's Dark color requires a %n (or other color shift) before the Dark color shows correctly. A patch has been submitted to GitHub. Test script: --------------- <?php require 'Console/Color2.php'; $c = new Console_Color2(); print $c->convert("%r[%R1%r/%R100%r]%n\n"); ?> Expected result: ---------------- I expect to see: red[RED1red/RED100red] The brackets and slash are dark red, and the numbers are light red. Actual result: -------------- I see: red[RED1/100] The first bracket is dark red, the rest of the text is light red.


 [2012-10-23 16:50 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. 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.