[php-src] PR #24789: Fix GH-23875: Skip gh7980.phpt when windows-1258 is unavailable

From: Date: Tue, 27 Oct 2026 14:51:19 +0000
Subject: [php-src] PR #24789: Fix GH-23875: Skip gh7980.phpt when windows-1258 is unavailable
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-39974@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24789 Author: Truta446 > Fixes GH-23875. > > ext/iconv/tests/gh7980.phpt decodes a > windows-1258 MIME header, but that charset is optional in glibc: on > Fedora 44 CP1258.so is shipped by > glibc-gconv-extra, not by glibc > (checked with mdapi.fedoraproject.org), and minimal container images do not install it. > iconv_open() then fails and the test reports Wrong > encoding, conversion from "???" to "UTF-8" is not allowed > instead of skipping. > > This adds a SKIPIF that probes the charset with iconv(), the > same approach as iconv002.phpt. > > Tested on PHP-8.4 (glibc, Ubuntu 24.04): the test still runs and passes when the charset is > available; a copy of the test using a nonexistent charset name is skipped with the new reason; > ext/iconv/tests passes (78 passed, 0 failed). > > The sibling report GH-23874 (bug52211.phpt, CP850, also in > glibc-gconv-extra) is already addressed by the rewrite in #24406.

« previous php.git-pulls (#39974) next »