Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- ZipArchive::getExternalAttributesName() throws a ValueError when the $name param ..
Decoded Output download
--TEST--
ZipArchive::getExternalAttributesName() throws a ValueError when the $name param is empty
--EXTENSIONS--
zip
--FILE--
<?php
$zip = new ZipArchive();
$dirname = __DIR__ . '/';
$zip->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) cannot be empty
Did this file decode correctly?
Original Code
--TEST--
ZipArchive::getExternalAttributesName() throws a ValueError when the $name param is empty
--EXTENSIONS--
zip
--FILE--
<?php
$zip = new ZipArchive();
$dirname = __DIR__ . '/';
$zip->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) cannot be empty
Function Calls
None |
Stats
MD5 | 1d9ff56959237d040b8155cf1df793bf |
Eval Count | 0 |
Decode Time | 74 ms |