php.net |  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:
MUST BE VALID
Solve the problem:
40 - 13 = ?
Subscribe to this entry?

 
 [2021-03-03 13:53 UTC] icaruswing69 at yahoo dot com
Description:
------------
ZipArchive::isCompressionMethodSupported is documented (https://www.php.net/manual/en/ziparchive.iscompressionmethoddupported.php) 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: https://windows.php.net/downloads/releases/php-8.0.3-nts-Win32-vs16-x64.zip.

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:
----------------
bool(true)

Actual result:
--------------
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-03 14:11 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2021-03-03 14:11 UTC] cmb@php.net
config.w32 is missing a define for HAVE_METHOD_SUPPORTED.
 [2021-03-03 21:58 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4f478af16d24fd9302af352be79514339371fb0b
Log: Fix #80825: ZipArchive::isCompressionMethodSupported does not exist
 [2021-03-03 21:58 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2021-03-03 21:58 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 13:01:29 2024 UTC