[wp-trac] [WordPress Trac] #52018: Zip Module 2.8.2 - class-pclzip fatal error with PHP 8.0
WordPress Trac
noreply at wordpress.org
Tue Feb 16 18:40:43 UTC 2021
#52018: Zip Module 2.8.2 - class-pclzip fatal error with PHP 8.0
-------------------------------------------------+-------------------------
Reporter: fierevere | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6.2
Component: Filesystem API | Version: 5.6
Severity: normal | Resolution: fixed
Keywords: php8 has-patch needs-unit-tests | Focuses:
commit |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"50355" 50355]:
{{{
#!CommitTicketReference repository="" revision="50355"
Filesystem API: Make sure to only call `fread()` on non-empty files in the
PclZip library.
This avoids a fatal error on PHP 8 caused by passing a zero value to
`fread()` as the `$length` argument, which must be greater than zero.
Props yakimun, fierevere, jrf, DavidAnderson, SergeyBiryukov.
Fixes #52018.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52018#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list