|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80825 ZipArchive::isCompressionMethodSupported does not exist
Submitted: 2021-03-03 13:53 UTC Modified: 2021-03-03 21:58 UTC
From: icaruswing69 at yahoo dot com Assigned: cmb (profile)
Status: Closed Package: Zip Related
PHP Version: 8.0.2 OS: Win10 (1909/Build 18363.1377)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
26 - 20 = ?
Subscribe to this entry?

 [2021-03-03 13:53 UTC] icaruswing69 at yahoo dot com
ZipArchive::isCompressionMethodSupported is documented ( as being available since PHP 8.0.0 when built with libzip >= 1.7.0, but isn't in the Windows binaries.

This is with the 64 bit NTS build from:

Result of "php --ri zip":

 Zip => enabled
 Zip version => 1.19.2
 Libzip version => 1.7.1

Test script:
var_dump(method_exists('ZipArchive', 'isCompressionMethodSupported'));

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-03 14:11 UTC]
-Status: Open +Status: Verified
 [2021-03-03 14:11 UTC]
config.w32 is missing a define for HAVE_METHOD_SUPPORTED.
 [2021-03-03 21:58 UTC]
Automatic comment on behalf of
Log: Fix #80825: ZipArchive::isCompressionMethodSupported does not exist
 [2021-03-03 21:58 UTC]
-Status: Verified +Status: Closed
 [2021-03-03 21:58 UTC]
-Assigned To: +Assigned To: cmb
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 02:01:32 2024 UTC