Bug #80825 [Opn->Ver]: ZipArchive::isCompressionMethodSupported does not exist
| From: | cmb@php.net | Date: | Wed, 03 Mar 2021 14:11:38 +0000 |
| Subject: | Bug #80825 [Opn->Ver]: ZipArchive::isCompressionMethodSupported does not exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232514@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: Open
+Status: Verified
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:
config.w32 is missing a define for HAVE_METHOD_SUPPORTED.
Previous Comments:
------------------------------------------------------------------------
[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