We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d64d411 commit 9b57fffCopy full SHA for 9b57fff
src/Parser/Header.php
@@ -55,8 +55,8 @@ public function harvestPaxData(string $paxData): void
55
if ($record === '') {
56
continue;
57
}
58
- preg_match_all('/^(\d+) ([^=]+)=(.*)$/', $record, $matches);
59
- if (count($matches) !== 4) {
+ $matchesFound = preg_match_all('/^(\d+) ([^=]+)=(.*)$/', $record, $matches);
+ if (!$matchesFound) {
60
throw new InvalidArchiveFormatException(
61
sprintf('Invalid Pax header record format: %s', $record)
62
);
0 commit comments