Skip to content

ext/standard: Check file truncation - #340

Closed
iliaal wants to merge 1 commit into
PHP-8.4from
fix/aph-doib
Closed

iliaal wants to merge 1 commit into
PHP-8.4from
fix/aph-doib

Conversation

@iliaal

@iliaal iliaal commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Fail LOCK_EX writes when destination truncation reports an error instead of continuing with a partial file. The regression test covers truncation failure reporting.

@iliaal
iliaal changed the base branch from master to PHP-8.4 September 24, 2026 13:02
Fail locked replacements when truncation fails, before writing data or
consuming the source stream. Preserve writes to native nonregular files,
which may support locking and writing without supporting truncation.
@iliaal

iliaal commented Oct 29, 2026

Copy link
Copy Markdown
Owner Author

Promoted to php#25034.

@iliaal iliaal closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant