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

Empty last line breaks Image_Color Version 1.0.0 if used with header()

Details

Submitted2004-05-08 22:20 UTC
Fromtb at despammed dot com
StatusBogus
PackageImage_Color
PHP Version4.3.3
OSLinux / Debian
Roadmaps(Not assigned)

Comments

[2004-05-08 22:20 UTC] tb at despammed dot com

Description:
------------
after a fresh install (using "pear install Image_Color") the file Color.php contains an empty last line which effectively breaks the package for use with the header()-function.

I found this while using Image_Graph, which is then unable to use the header() function and barfs.

Reproduce code:
---------------
require_once("Image/Color.php");

Expected result:
----------------
The code should not give output, but it outputs an empty line.

Actual result:
--------------
An empty line.

[2004-05-08 22:24 UTC] tb at despammed dot com

made title more appropriate -- it doesnt break the package *all the time*, but only under special use.