PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_Transform » Bug #6976

wrong handling of $type param in display() (IM.php)

Details

Submitted2006-03-01 17:08 UTC
Fromas at mindcom dot de
Assignedjausions
StatusClosed
PackageImage_Transform
PHP Version5.1.1
OSWINXP
Roadmaps(Not assigned)

Comments

[2006-03-01 17:08 UTC] as at mindcom dot de

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);

[2006-03-01 18:01 UTC] reywob at php dot net

just to clarify: what's wrong with the original?

[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!