php.net |  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: 2016-08-17 17:01 UTC
Votes:3
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: cmb@php.net Assigned: cmb (profile)
Status: Assigned 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [2016-07-07 12:40 UTC] cmb@php.net
Description:
------------
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
    implementation?)
 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
builds).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-07 17:13 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2016-07-08 05:00 UTC] pajoye@php.net
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] cmb@php.net
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.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Sep 18 15:01:28 2018 UTC