Home » Images » Image_Transform » Bug #6770
Invalid filename ''
Details
| Submitted | 2006-02-13 15:59 UTC |
|---|---|
| From | linuxrocks at gmail dot com |
| Status | No Feedback |
| Package | Image_Transform |
| PHP Version | 4.4.0 |
| OS | Windows |
| 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