Skip to content

Commit

Permalink
Micro-optimize, update fgets() to read only needed amount of bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 15, 2021
1 parent c5a0eae commit 99ab1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zend-mail/library/Zend/Mail/Storage/Mbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ protected function _isMboxFile($file, $fileIsString = true)

$result = false;

$line = fgets($file);
$line = fgets($file, 6);
if (strpos($line, 'From ') === 0) {
$result = true;
}
Expand Down

0 comments on commit 99ab1d6

Please sign in to comment.