php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41694 Compile fails: file libgd00086.png in php 5.2.3 tarball is corrupted
Submitted: 2007-06-14 20:25 UTC Modified: 2007-06-14 20:45 UTC
From: melaina at libero dot it Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.3 OS: RHEL 4, RHEL 3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: melaina at libero dot it
New email:
PHP Version: OS:

 

 [2007-06-14 20:25 UTC] melaina at libero dot it
Description:
------------
I had the same issue as http://bugs.php.net/bug.php?id=41612, but I found out the problem and the solution was simpler than that.

The file libgd00086.png in the /ext/gd/tests directory of the current php release is corrupted; on some systems, it sends the test performed in libgd00086.phpt in an endless loop, with libpng returning a CRC Warning on the file.

I do not know why this happens only on RHEL systems, but all I had to do to fix the issue was to replace libgd00086.png with a small png file I made.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-14 20:28 UTC] melaina at libero dot it
I had the same issue as http://bugs.php.net/bug.php?id=41612, but I
found out the problem and the solution was simpler than that.

The file libgd00086.png in the /ext/gd/tests directory of the current
php release is corrupted; on some systems, it sends the test performed
in libgd00086.phpt in an endless loop, with libpng returning a CRC
Warning on the file.

I do not know why this happens only on RHEL systems, but all I had to do
to fix the issue was to replace libgd00086.png with a small png file I
made.
 [2007-06-14 20:33 UTC] pajoye@php.net
The goal of this test (and its file) is to test this issue. Which is about not killing your box when one gives a corrupt PNG data, replacing the data with a valid png will not help :)

There is two problems to fix, one in php/gd (what I did) and two/three in libpng, what the last libpng releases did.

RHEL and debian, to list the two I know, did not update their system yet. But that's not our problem, sadly. No bug > bogus.
 [2007-06-14 20:36 UTC] melaina at libero dot it
Oooops silly me. This was done on purpose, I suppose! Please close bug!
 [2007-06-14 20:38 UTC] melaina at libero dot it
Hehe, thanks - you were faster than me! I hadn't read your reply yet :)

So basically we should wait for RHEL to issue a new libpng version?
 [2007-06-14 20:45 UTC] melaina at libero dot it
Shouldn't RH have addressed this issued with https://rhn.redhat.com/errata/RHSA-2007-0356.html?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Sep 13 23:00:01 2025 UTC