Open orlitzky opened 1 year ago
It looks like IMG_BICUBIC
was accidentally broken (https://github.com/libgd/libgd/issues/847) so the tests involving it fail justifiably.
A few PRs to get started on this:
I've got another PR in the works fixing the rest of the ones that I know how to fix. If, in addition, I patch IMG_BICUBIC
back into gd-2.3.3, then these are the remaining failures:
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #43073 (TrueType bounding box is wrong for angle<>0) [bug43073.phpt]
Bug #48732 (TTF Bounding box wrong for letters below baseline) [bug48732-mb.phpt]
Bug #48732 (TTF Bounding box wrong for letters below baseline) [bug48732.phpt]
Bug #48801 (Problem with imagettfbbox) [bug48801-mb.phpt]
Bug #48801 (Problem with imagettfbbox) [bug48801.phpt]
Bug #53504 imagettfbbox/imageftbbox gives incorrect values for bounding box [bug53504.phpt]
Bug #65148 (imagerotate may alter image dimensions) [bug65148.phpt]
Bug #73272 (imagescale() is not affected by, but affects imagesetinterpolation()) [bug73272.phpt]
=====================================================================
Here's my best guess as to what's happening.
Fail due to changes made in https://svn.php.net/viewvc/?view=revision&revision=286415 that never went upstream:
Unsure. The bug was fixed in https://github.com/php/php-src/pull/1845 and it looks like the changes should have gone upstream, but the test still reports different sizes:
This one segfaults(?):
And finally, this fails because of a minor size difference (expected 135x136, got 137x137), and is probably due to the same imagerotate/boxing issues elsewhere:
@pierrejoye your input would be helpful on the difference between the bundled and upstream results, or anywhere really :)
And here's the last PR: https://github.com/php/php-src/pull/11280
IIRC the only remaining failures are the six mentioned in https://github.com/php/php-src/issues/11252#issuecomment-1555302644 whose causes are so far unknown.
Should I leave this open, or close it and open a new issue with the more limited scope of fixing those six?
Description
I was experimenting with using the system gd for our Gentoo package, and noticed a bunch of test failures:
These fall into a few classes, some more difficult than others.
bug45799.phpt
is looking forWarning: imagepng(): gd-png error: no colors in palette in %s on line %d
but getsWarning: imagepng(): gd-png error: no colors in palette\n in %s on line %d
. These tests could be made to support both outputs.PHP Version
git master
Operating System
No response