1--TEST--
2ZipArchive::getExternalAttributesName() throws a ValueError when the $name param is empty
3--EXTENSIONS--
4zip
5--FILE--
6<?php
7
8$zip = new ZipArchive();
9$dirname = __DIR__ . '/';
10
11$zip->open($dirname . "test.zip", ZIPARCHIVE::CREATE);
12
13$a = ZipArchive::OPSYS_DEFAULT;
14$b = ZipArchive::OPSYS_DEFAULT;
15
16try {
17    $zip->getExternalAttributesName("", $a, $b);
18} catch(ValueError $e) {
19    echo $e->getMessage();
20}
21?>
22--EXPECT--
23ZipArchive::getExternalAttributesName(): Argument #1 ($name) cannot be empty
24