php / php/php-src

FAILED TEST exist in make test on FreeBSD13: Test lstat() and stat() functions: usage variations - effects of is_dir() [ext/standard/tests/file/lstat_stat_variation10.phpt]

Open
#11,666 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Category: Filesystem 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:

cd /tmp && \
fetch https://www.php.net/distributions/php-8.2.8.tar.xz && \
tar xvf php-8.2.8.tar.xz && \
cd /tmp/php-8.2.8 && \
./configure --disable-all && \
make test

Resulted in this output:

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test disk_free_space and its alias diskfreespace() functions : basic functionality [ext/standard/tests/file/disk_free_space_basic.phpt]
Test lstat() and stat() functions: usage variations - dir/file name stored in object [ext/standard/tests/file/lstat_stat_variation18.phpt]
Test lstat() and stat() functions: usage variations - dir/file names in array [ext/standard/tests/file/lstat_stat_variation19.phpt]
Test lstat() and stat() functions: usage variations - link names stored in array/object [ext/standard/tests/file/lstat_stat_variation20.phpt]
symlink() & friends [ext/standard/tests/file/symlink.phpt]
=====================================================================

php_test_results_20230711_0411.txt

I also tried to compile in /mnt. Another Failed throw.

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test disk_free_space and its alias diskfreespace() functions : basic functionality [ext/standard/tests/file/disk_free_space_basic.phpt]
Test lstat() and stat() functions: usage variations - dir/file name stored in object [ext/standard/tests/file/lstat_stat_variation18.phpt]
Test lstat() and stat() functions: usage variations - dir/file names in array [ext/standard/tests/file/lstat_stat_variation19.phpt]
Test lstat() and stat() functions: usage variations - link names stored in array/object [ext/standard/tests/file/lstat_stat_variation20.phpt]
Bug #74090 stream_get_contents maxlength>-1 returns empty string on windows [ext/standard/tests/streams/bug74090.phpt]
=====================================================================

php_test_results_20230711_0419.txt

But I expected this output instead:
Bug tests are in Passed / Skipped / Expected Failed / Warned, no Bug test is Failed

PHP Version

PHP 8.2.8

Operating System

FreeBSD 13.2-RELEASE

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 reviewing the attached test results and reproducing make test on FreeBSD 13.2 with the provided PHP 8.2.8 configuration. Inspect the named tests under ext/standard/tests/file and ext/standard/tests/streams, especially the lstat/stat, disk_free_space, symlink, and bug74090 cases. Done means determining why these tests fail on FreeBSD and ensuring the affected tests report the appropriate passing, skipped, or expected-failure status.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.