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

Bug #6976 wrong handling of $type param in display() (IM.php)
Submitted: 2006-03-01 17:08 UTC
From: as at mindcom dot de Assigned: jausions
Status: Closed Package: Image_Transform (version 0.9.0)
PHP Version: 5.1.1 OS: WINXP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 8 + 4 = ?

 
 [2006-03-01 17:08 UTC] as at mindcom dot de (A Sabosch)
Description: ------------ function display in IM.php -> strtoupper(($type == '') ? $type : $this->type); but it should be something like this (old style ;) if ($type == '') { $type = $this->type; } $type = strtoupper($type);

Comments

 [2006-03-01 17:22 UTC] jausions
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.
 [2006-03-01 18:01 UTC] reywob at php dot net
just to clarify: what's wrong with the original?
 [2006-03-01 18:08 UTC] jausions
It used the blank $type instead of $this->type when $type = '' was passed.
 [2006-03-01 18:10 UTC] reywob at php dot net
ah missed that, thought there was something wrong with the ternary operator ;)
 [2006-03-02 08:56 UTC] as at mindcom dot de
thank you for your immediate attention!