Bug #80825 [NEW]: ZipArchive::isCompressionMethodSupported does not exist
| From: | icaruswing69 at yahoo dot com | Date: | Wed, 03 Mar 2021 13:53:41 +0000 |
| Subject: | Bug #80825 [NEW]: ZipArchive::isCompressionMethodSupported does not exist | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-232512@lists.php.net to get a copy of this message | ||
From: icaruswing69 at yahoo dot com
Operating system: Win10 (1909/Build 18363.1377)
PHP version: 8.0.2
Package: Zip Related
Bug Type: Bug
Bug description:ZipArchive::isCompressionMethodSupported does not exist
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 bug report at https://bugs.php.net/bug.php?id=80825&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80825&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80825&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80825&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80825&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80825&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80825&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80825&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80825&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80825&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80825&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80825&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80825&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80825&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80825&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80825&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80825&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80825&r=mysqlcfg