[php-src] PR #25857: Skip createfromstring-overflow.phpt with external libgd >= 2.3.3
| From: | inode64 | Date: | Sat, 28 Nov 2026 00:12:19 +0000 |
| Subject: | [php-src] PR #25857: Skip createfromstring-overflow.phpt with external libgd >= 2.3.3 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41142@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25857
Author: inode64
The description below was drafted with an LLM (Claude Code, Claude Opus 5.5) and reviewed before
posting.
>
createfromstring-overflow.phpt (added in b8c63871c8, GH-23953)
> fails when ext/gd is built against an external libgd 2.3.3: libgd 2.3.3 disables the legacy GD and
> GD2 formats by default (--enable-gd-formats), so
> imagecreatefromstring() emits an extra warning:
>
> ```
> 001+ Warning: imagecreatefromstring(): GD2 image support has been disabled
> 002+ in .../ext/gd/tests/createfromstring-overflow.php on line 29
> ```
>
> Without GD2 support the test cannot exercise the INT_MAX chunk
> handling anyway. This skips it with the same condition the other GD2 tests have used since
> 0aaad46c15 ("Fix most external GD 2.3.3 compatibility"). Builds with the bundled libgd run
> the test as before.
>
> Tested with PHP 8.4.28 and the system libgd 2.3.3 (Gentoo
> media-libs/gd, default configuration): FAIL before, SKIP after. Not
> tested with the bundled libgd, where the new SKIPIF condition is false.
>
> We first worked around it in our Gentoo overlay by accepting the extra warning
> (https://github.com/inode64/inode64-overlay/blob/main/dev-lang/php/files/php-8.4-gd2-disabled-diagnostic.patch);
> skipping, as the other GD2 tests do, is simpler.
🤖 Generated with [Claude Code](https://claude.com/claude-code)