--TEST-- ZipArchive::getExternalAttributesName() throws a ValueError when the $name param is empty --EXTENSIONS-- zip --FILE-- open($dirname . "test.zip", ZIPARCHIVE::CREATE); $a = ZipArchive::OPSYS_DEFAULT; $b = ZipArchive::OPSYS_DEFAULT; try { $zip->getExternalAttributesName("", $a, $b); } catch(ValueError $e) { echo $e->getMessage(); } ?> --EXPECT-- ZipArchive::getExternalAttributesName(): Argument #1 ($name) must not be empty