|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: icaruswing69 at yahoo dot com
New email:
PHP Version: OS:


 [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 00:01:31 2024 UTC