PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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!