[wp-trac] [WordPress Trac] #52018: Zip Module 2.8.2 - class-pclzip fatal error with PHP 8.0
WordPress Trac
noreply at wordpress.org
Thu Jan 28 14:33:48 UTC 2021
#52018: Zip Module 2.8.2 - class-pclzip fatal error with PHP 8.0
---------------------------------------------+-----------------------------
Reporter: fierevere | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.6.2
Component: Filesystem API | Version: 5.6
Severity: normal | Resolution:
Keywords: php8 has-patch needs-unit-tests | Focuses:
---------------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
Just noting that I was able to reproduce the issue. Some notes:
* Disable the `zip` PHP extension. On Windows, it's built-in since PHP
5.3, so this filter can be used instead:
{{{
add_filter( 'unzip_file_use_ziparchive', '__return_false' );
}}}
* For the fatal error to occur, the uploaded plugin archive must contain
at least one empty file.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52018#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list