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 #6770

Invalid filename ''

Details

Submitted2006-02-13 15:59 UTC
Fromlinuxrocks at gmail dot com
StatusNo Feedback
PackageImage_Transform
PHP Version4.4.0
OSWindows
Roadmaps(Not assigned)

Comments

[2006-02-13 15:59 UTC] linuxrocks at gmail dot com

Description:
------------
Using the GD Driver on WinXP, PHP 4.4, GD gives the following error when display() is called:

Warning: imagepng(): Invalid filename '' in E:\htdocs\libs\pear\Image\Transform\Driver\GD.php on line 464

If the second argument from line 464 is removed so:
$result = $functionName($this->imageHandle, $filename);

becomes:
$result = $functionName($this->imageHandle);

The error will disappear and the script will function as expected. However, I suspect that this patch may break saving.

Test script:
---------------
<?php
require_once ("Image/Transform.php");
$b =& Image_Transform::factory('gd');

$b->load ("logo.png");
$b->display();
?>

Expected result:
----------------
Image displays.

Actual result:
--------------
Warning: imagepng(): Invalid filename ''

[2006-02-16 03:03 UTC] rhutchison at quadspeedi dot net

This is also the case on freebsd