xref: /PHP-8.1/ext/phar/tests/zip/corrupt_005.phpt (revision 74859783)
1--TEST--
2Phar: encrypted zip
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7try {
8    new PharData(__DIR__ . '/files/encrypted.zip');
9} catch (Exception $e) {
10    echo $e->getMessage() . "\n";
11}
12?>
13--EXPECTF--
14phar error: Cannot process encrypted zip files in zip-based phar "%sencrypted.zip"
15