Bump imapEngine from v1.25.2 to v1.25.3

This commit is contained in:
johnnyq
2026-07-23 00:59:07 -04:00
parent 2b756f6ea4
commit 7ccdc942fe
9 changed files with 67 additions and 48 deletions

View File

@@ -387,6 +387,20 @@ class ImapTokenizer
$this->advance();
}
// If no value was read, we will throw an exception since
// an atom must contain at least one valid character.
if ($value === '') {
if ($char === null) {
throw new ImapStreamException('Unexpected end of stream while reading atom');
}
throw new ImapParserException(sprintf(
'Unexpected byte 0x%02X in response at buffer offset %d',
ord($char),
$this->position
));
}
if (strcasecmp($value, 'NIL') === 0) {
return new Nil($value);
}
@@ -437,7 +451,9 @@ class ImapTokenizer
while ((strlen($this->buffer) - $this->position) < $length) {
$data = $this->stream->fgets();
if ($data === false) {
// If the stream did not return any data, we will stop
// filling the buffer until another read is attempted.
if ($data === false || $data === '') {
return;
}