imap_fetchbody() leaks memory

php.internals

Leon Sorokin

9 years ago
Hey guys, I filed bug 73493 [1] a couple months ago and there's no triage or visible activity yet. Was hoping to get an update if possible. I'm forced to download any large INBOX in batches with imap_close() & imap_open() gymnastics to avoid chewing through 2GB+ of RAM. thanks! [1] https://bugs.php.net/bug.php?id=73493

Mike

9 years ago
Am 22.01.2017 00:15 schrieb "Leon Sorokin" <leeoniya@gmail.com>: Hey guys, I filed bug 73493 [1] a couple months ago and there's no triage or visible activity yet. Was hoping to get an update if possible. I'm forced to download any large INBOX in batches with imap_close() & imap_open() gymnastics to avoid chewing through 2GB+ of RAM. thanks! [1] https://bugs.php.net/bug.php?id=73493 Just assigned that to me, I'll try to come to it the next few days.

Leon Sorokin

9 years ago
On 1/23/2017 2:45 PM, Michael Wallner wrote:
> Just assigned that to me, I'll try to come to it the next few days.
Great, thanks!

Michael Wallner

9 years ago
On 24/01/17 08:41, Leon Sorokin wrote:
> On 1/23/2017 2:45 PM, Michael Wallner wrote: >> Just assigned that to me, I'll try to come to it the next few days. > > Great, thanks! >
Hi, I've updated the bug: https://bugs.php.net/bug.php?id=73493 TL;DR The c-client lib performs a lot of caching; use imap_gc() to clean those caches from time to time.
-- Regards, Mike

Leon Sorokin

9 years ago
On 1/25/2017 3:52 AM, Michael Wallner wrote:
> > Hi, I've updated the bug: https://bugs.php.net/bug.php?id=73493 > > TL;DR > > The c-client lib performs a lot of caching; use imap_gc() to clean those > caches from time to time.
Ok, great. Will give that a try.