php / php/php-src

PHP post-compilation test failed: Bug #81145 (copy() and stream_copy_to_stream() fail for +4GB files) [ext/standard/tests/file/bug81145.phpt]

Open
#15,962 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Category: Tests Status: Needs Triage
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

The following code:

make test

Resulted in this output:

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #81145 (copy() and stream_copy_to_stream() fail for +4GB files) [ext/standard/tests/file/bug81145.phpt]                                                            
=====================================================================

But I expected all tests to pass.

Compiled and tested with 2 simultaneous jobs.

Using software:

GCC v8.5.0
GNU Make v4.2.1

Test output:
php_test_results_20240919_2132.txt

PHP Version

PHP 8.3.11

Operating System

Oracle Linux Server 8.10 aarch64

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 by running make test and inspect ext/standard/tests/file/bug81145.phpt, using the attached test output as a comparison. Reproduce the failure for PHP 8.3.11 on Oracle Linux aarch64 and determine what is needed for the test to pass with files larger than 4GB.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.