Skip to content

[pull] master from php:master - #1186

Merged
pull[bot] merged 3 commits into
turkdevops:masterfrom
php:master
Aug 14, 2026
Merged

[pull] master from php:master#1186
pull[bot] merged 3 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Aug 14, 2026

Copy link
Copy Markdown

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 : )

zip_fclose() returns positive error codes, so the extraction's n < 0 check
treated a failed read as success and wrote corrupt data to disk.
getFromName()/getFromIndex() read exactly sb.size bytes, never reaching end
of file where libzip validates the CRC, and returned the corrupt data
silently. Read errors now fail with a warning.

Close GH-23240
* PHP-8.4:
  ext/zip: fix extractTo()/getFrom*() success on CRC-corrupted entries
* PHP-8.5:
  ext/zip: fix extractTo()/getFrom*() success on CRC-corrupted entries
@pull pull Bot locked and limited conversation to collaborators Aug 14, 2026
@pull pull Bot added the ⤵️ pull label Aug 14, 2026
@pull
pull Bot merged commit fb68795 into turkdevops:master Aug 14, 2026
1 of 3 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