|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72557 Failing GD tests for external libgd builds
Submitted: 2016-07-07 12:40 UTC Modified: 2019-11-11 15:56 UTC
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: Assigned:
Status: Open Package: Testing related
PHP Version: 5.6Git-2016-07-07 (Git) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2016-07-07 12:40 UTC]
I just noticed that lots of ext/gd/tests/*.phpt fail when PHP is
built with an external libgd-2.1.1 (I have not checked yet with
other libgd versions, but I suppose there are issues, too). A
quick check showed different reasons:

 1) slight image differences (due to rounding/different
 2) (slightly) different warning messages
 3) segfaults and/or memory leaks

While (1) and (2) are "only" annoying, (3) seems to be a serious
issue. Nonetheless, all failing tests should be adjusted (at the
very least (1) and (2) should be skipped for external libgd


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-07 17:13 UTC]
-Assigned To: +Assigned To: cmb
 [2016-07-08 05:00 UTC]
I would try with 2.2.2 as many fixes in bundled gd are in 2.2 as well but not in 2.1.
The rounding issues wille be solved in 7.1 by using 2.2.x.

Also some tests may be due to different architecture.
 [2016-07-08 10:42 UTC]
Indeed, with libgd-2.2.2 apparently there are no segfaulting
tests. It's probably best to skip/xfail these tests for libgd-2.1,
because that version seems still to be in widespread use, and
users running the test suite would experience a high failure rate.
I'll have a look at it.
 [2019-11-11 15:56 UTC]
-Assigned To: cmb +Assigned To:
 [2019-11-11 15:56 UTC]
Unassigning myself for time reasons. :(
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jun 25 15:03:37 2022 UTC