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: 2019-11-11 15:56 UTC
Votes:4
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: cmb@php.net 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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 - 18 = ?
Subscribe to this entry?

 
 [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.
 [2019-11-11 15:56 UTC] cmb@php.net
-Assigned To: cmb +Assigned To:
 [2019-11-11 15:56 UTC] cmb@php.net
Unassigning myself for time reasons. :(
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 09:01:29 2024 UTC