[Tickets #15101] Re: Infinite loop feof() and fread() addAttachmentFromPart
noreply at bugs.horde.org
noreply at bugs.horde.org
Wed Feb 19 09:05:14 UTC 2025
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: https://bugs.horde.org/ticket/15101
------------------------------------------------------------------------------
Ticket | 15101
Aktualisiert Von | michael.menge at uni-tuebingen.de
Zusammenfassung | Infinite loop feof() and fread() addAttachmentFromPart
Warteschlange | IMP
Version | 6.2.27
Typ | Bug
Status | Unconfirmed
Priorität | 2. Medium
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
michael.menge at uni-tuebingen.de (2025-02-19 09:05) hat geschrieben:
I hit the same bug, unable to reproduce.
IMHO a solution would be to check if $stream is set before calling
rewind($stream);
$dest_handle = fopen($atc_file, 'w+b');
while (!feof($stream)) {
fwrite($dest_handle, fread($stream, 1024));
}
More information about the bugs
mailing list