Skip to content

ext/standard: Skip proc_open descriptor 0 tests without /proc/self/fd symlinks - #24571

Closed
jorgsowa wants to merge 1 commit into
php:PHP-8.4from
jorgsowa:fix-proc-open-fd0-tests-solaris
Closed

jorgsowa wants to merge 1 commit into
php:PHP-8.4from
jorgsowa:fix-proc-open-fd0-tests-solaris

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

On Solaris /proc/self/fd entries are not symlinks, so readlink() fails with EINVAL.

Ref: #24410

… symlinks

On Solaris/illumos /proc/self/fd entries are not symlinks, so readlink()
fails with EINVAL.

Co-authored-by: David Carlier <devnexen@gmail.com>
@jorgsowa
jorgsowa requested a review from devnexen October 22, 2026 19:27
@jorgsowa
jorgsowa requested a review from bukka as a code owner October 22, 2026 19:27
@jorgsowa jorgsowa changed the title ext/standard: Skip proc_open descriptor 0 tests without /proc/self/fd… ext/standard: Skip proc_open descriptor 0 tests without /proc/self/fd symlinks Oct 22, 2026
@jorgsowa

Copy link
Copy Markdown
Contributor Author

Solaris job didn't run, I cannot verify the branch properly this way.

@ndossche

Copy link
Copy Markdown
Member

php-src/.github/matrix.php

Lines 139 to 141 in 0220731

if (version_compare($php_version, '8.6', '>=') && ($all_jobs || $test_solaris)) {
$jobs['SOLARIS'] = true;
}

Looks like Solaris CI is only ran on 8.6 or higher. cc @iluuu1994 is that intentional or an accident?

@ndossche

Copy link
Copy Markdown
Member

@jorgsowa Can you open a variant of this PR targeting 8.6 so you can test there? If it succeeds there, close that 8.6 PR and merge this one please.

@cinematografiagranados-cpu

This comment was marked as off-topic.

@iluuu1994

Copy link
Copy Markdown
Member

Intentional, we only added Solaris recently and backporting all the fixes was not worth the hassle.

@cinematografiagranados-cpu

This comment was marked as off-topic.

@jorgsowa

Copy link
Copy Markdown
Contributor Author

Modified tests are passing on 8.6: https://github.com/php/php-src/actions/runs/40120224651/job/120950008844?pr=24660

(there is still one failing test that is fixed in another PR)

@jorgsowa jorgsowa closed this in 0ddabc3 Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants