php / php/php-src

Test failures with musl libc

オープン
#22,413 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Bug Category: Tests Status: Verified
主要言語
C
スター
40.4k
フォーク
8.2k
平均マージ
2日 13時間
マージ済み PR(30日)
96

説明

Description

Follow-up to https://github.com/php/php-src/issues/13696. Musl is partially tested on the CI, but the Alpine job installs gnu-libiconv-dev which hides the following errors. With the latest php-8.5.7 release:

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #48147 (iconv with //IGNORE cuts the string) [ext/iconv/tests/bug48147.phpt]
Bug #52211 (iconv() returns part of string on error) [ext/iconv/tests/bug52211.phpt]
Bug #76249 (stream filter convert.iconv leads to infinite loop on invalid sequence) [ext/iconv/tests/bug76249.phpt]
EUC-JP to ISO-2022-JP [ext/iconv/tests/eucjp2iso2022jp.phpt]
iconv_mime_encode() [ext/iconv/tests/iconv_mime_encode.phpt]

I have an old PR at https://github.com/php/php-src/pull/16840 whose details I've mostly forgotten. I can start by cherry-picking the easy parts of that.

PHP Version
PHP 8.5.7
Operating System

Gentoo linux

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Alpine CI ジョブと ext/iconv/tests/ で失敗しているテスト、特に bug48147.phpt、bug52211.phpt、bug76249.phpt、eucjp2iso2022jp.phpt、iconv_mime_encode.phpt から始めてください。gnu-libiconv-dev ありの場合となしの場合でジョブを比較し、その後 PR 16840 の関連する作業を確認してください。完了とは、対象のテストが、そのパッケージによって失敗が隠されることなく musl 上でパスすることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
c, linux, php
領域
operating-systems, testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。