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
 [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

Pull Requests

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: Thu Nov 21 10:01:29 2024 UTC