Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Dec 21, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

This stopped working after e735d2b because fp_refcount is increased,
making phar think that the file has open read pointers.
To fix this, the refcount shouldn't be increased but that would
re-introduce the previous bug.
Instead, we need to add a field that "locks" the existence of the
internal entry separate from the refcount.

Closes GH-20473.
* PHP-8.3:
  phar: Fix SplFileInfo::openFile() in write mode
* PHP-8.4:
  phar: Fix SplFileInfo::openFile() in write mode
* PHP-8.5:
  phar: Fix SplFileInfo::openFile() in write mode
@pull pull bot locked and limited conversation to collaborators Dec 21, 2025
@pull pull bot added the ⤵️ pull label Dec 21, 2025
@pull pull bot merged commit 0880433 into turkdevops:master Dec 21, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant