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_Color » Bug #1484

Extra line at end of file

Details

Submitted2004-05-24 18:28 UTC
FromDavid dot Crim at motorola dot com
StatusDuplicate
PackageImage_Color
PHP Version4.3.4
OSFedora Core 1
Roadmaps(Not assigned)

Comments

[2004-05-24 18:28 UTC] David dot Crim at motorola dot com

Description:
------------
I noticed that between version 0.4 and 1.0 an extra line was added to the end of the Image/Color.php file. This extra line broke the Image_Graph module for me. It caused an extra space to be output when including Image/Color.php. This caused the output to appear to no longer be an PNG file since it now starts with a " ". It also cause the attempt to change the "Content-Type" header to fail, since data had already been output.

Reproduce code:
---------------
Try the simple1.php script from the Image_Graph module.

Expected result:
----------------
A valid PNG file.

Actual result:
--------------
A PNG file with an extra blank space at the begining.