Skip to content

Commit 2116084

Browse files
lazergLamentXU123
authored andcommitted
Fix GH-24006: Skip gh18431.phpt when libzip lacks progress callbacks (#24009)
ZipArchive::registerProgressCallback() is only available when PHP is built against libzip 1.3.0 or newer. Skip gh18431.phpt when the method is absent to avoid an undefined method error, as the other progress callback tests already do. Closes #24009
1 parent 5e06b3c commit 2116084

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎ext/zip/tests/gh18431.phpt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
GH-18431 (Registering ZIP progress callback twice doesn't work)
33
--EXTENSIONS--
44
zip
5+
--SKIPIF--
6+
<?php
7+
if (!method_exists(ZipArchive::class, 'registerProgressCallback')) {
8+
die('skip progress callbacks are not supported');
9+
}
10+
?>
511
--FILE--
612
<?php
713
$file = __DIR__ . '/gh18431.zip';

0 commit comments

Comments
 (0)