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

Bug #6770 Invalid filename ''
Submitted: 2006-02-13 10:59 UTC Modified: 2007-02-12 16:00 UTC
From: linuxrocks at gmail dot com Assigned:
Status: No Feedback Package: Image_Transform (version 0.9.0)
PHP Version: 4.4.0 OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2006-02-13 10: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 ''

Comments

 [2006-02-15 22:03 UTC] rhutchison at quadspeedi dot net
This is also the case on freebsd
 [2006-03-01 12:29 UTC] jausions
Thank you for taking the time to report a problem with the package. This problem may have been already fixed by a previous change that is in the CVS of the package. Please log into CVS with: cvs -d :pserver:cvsread@cvs.php.net:/repository login and check out the CVS repository of this package and upgrade cvs -d :pserver:cvsread@cvs.php.net:/repository co pear/Image_Transform pear upgrade pear/Image_Transform/package2.xml or pear upgrade pear/Image_Transform/package.xml If you are able to reproduce the bug with the latest CVS, please change the status back to "Open". Again, thank you for your continued support of PEAR.