⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Support listing entries without password#6

Merged
thekid merged 4 commits intomasterfrom
feature/list-without-password
Nov 23, 2025
Merged

Support listing entries without password#6
thekid merged 4 commits intomasterfrom
feature/list-without-password

Conversation

@thekid
Copy link
Member

@thekid thekid commented Nov 23, 2025

This pull request defers veryfying a password is set and is correct until actually extracting a file. As long as the entries' input streams are not accessed via in(), everything works without supplying passwords.

use io\archive\zip\ZipFile;
use util\cmd\Console;

$zip= ZipFile::open($argv[1]);
foreach ($zip->entries() as $entry) {
  Console::writeLine($entry);

  // Here we would get a "password missing" exception:
  // Console::writeLine($entry->in()); 
}
$zip->close();

@thekid thekid merged commit aae45ac into master Nov 23, 2025
22 checks passed
@thekid
Copy link
Member Author

thekid commented Dec 12, 2025

@thekid thekid deleted the feature/list-without-password branch December 12, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant