Bug #80825 [Ver->Csd]: ZipArchive::isCompressionMethodSupported does not exist

From: Date: Wed, 03 Mar 2021 21:58:22 +0000
Subject: Bug #80825 [Ver->Csd]: ZipArchive::isCompressionMethodSupported does not exist
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232523@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80825&edit=1 ID: 80825 Updated by: cmb@php.net Reported by: icaruswing69 at yahoo dot com Summary: ZipArchive::isCompressionMethodSupported does not exist -Status: Verified +Status: Closed Type: Bug Package: Zip Related Operating System: Win10 (1909/Build 18363.1377) PHP Version: 8.0.2 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2021-03-03 14:11:38] cmb@php.net config.w32 is missing a define for HAVE_METHOD_SUPPORTED. ------------------------------------------------------------------------ [2021-03-03 13:53:41] 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) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80825&edit=1

« previous php.bugs (#232523) next »