Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Process]WindowsPipes needs to be updated for PHP 8.5 #60128

Open
@sebastianbergmann

Description

@sebastianbergmann

Symfony version(s) affected

5.4.47

Description

Afterphp/php-src@5544be7 (https://wiki.php.net/rfc/marking_return_value_as_important), Composer does not work on PHP 8.5 on Windows anymore:

  • flock() "demands" that its return value is either used or explicitly ignored (using the new(void) cast)
  • WindowsPipes callsflock() without using (or explicitly ignoring) its return value
  • flock() triggers anE_WARNING
  • ThisE_WARNING leads to an error

You can see the error inhttps://github.com/sebastianbergmann/php-code-coverage/actions/runs/14234238052/job/39890575323:Error: The return value of function flock() should either be used or intentionally ignored by casting it as (void), as locking the stream might have failed.

How to reproduce

Usesymfony/process with PHP 8.5 on Windows.

Possible Solutions

  • Use the return value offlock() and throw an exception when it isfalse (recommended)
  • Assign the return value offlock() to a variable to work around the problem in PHP < 8.5 (not recommended)
  • Cast the return value offlock() tovoid to work around the problem in PHP >= 8.5 (not recommended)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp