php / php/php-src

bug69442.phpt (PTY test) is flaky

Open
#20,864 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Extension: standard Status: Verified
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

ext/standard/tests/file/bug69442.phpt frequently fails in CI:

https://github.com/php/php-src/actions/runs/20802473279/job/59750077725

Resulted in this output:

- read from pipe 0: string(5) "foo
- "
+ read from pipe 0: string(0) ""
  read from pipe 3: string(3) "42
  "

But I expected this output instead:

No error

I've observed this on macOS and PPC64.

PHP Version
Any supported version
Operating System

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ext/standard/tests/file/bug69442.phpt and reproduce the CI failure from the linked GitHub Actions run. Compare PTY pipe behavior on macOS and PPC64 with the expected output, then make the test reliable across supported platforms. Done means the test no longer flakes and produces the intended “No error” result.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
operating-systems, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.