[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:46:35 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 fixed-major                             |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50356" 50356]:
 {{{
 #!CommitTicketReference repository="" revision="50356"
 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.
 Merges [50355] to the 5.6 branch.
 Fixes #52018.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52018#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list