Skip to content

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.

2 participants