Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit 3635fa1

Browse files
committed
Correct compound condition logic for detecting decryption stream end
1 parent 0582dec commit 3635fa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AesDecryptingStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private function decryptBlock(int $length): string
111111

112112
$options = OPENSSL_RAW_DATA;
113113
$this->cipherBuffer = $this->stream->read(self::BLOCK_SIZE);
114-
if ($this->cipherBuffer !== '' && !$this->stream->eof()) {
114+
if (!($this->cipherBuffer === '' && $this->stream->eof())) {
115115
$options |= OPENSSL_ZERO_PADDING;
116116
}
117117

0 commit comments

Comments
 (0)