# imap_fetchbody() leaks memory

- Thread: https://externals.io/message/97917
- Original archive: https://news-web.php.net/php.internals/97917
- Started by Leon Sorokin on 2017-01-21T23:15:29+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #97917 — Leon Sorokin — 2017-01-21T23:15:29+00:00

URL: https://externals.io/message/97917#97917

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

---

## #97939 — Michael Wallner — 2017-01-23T20:45:24+00:00

URL: https://externals.io/message/97917#97939 · In reply to: #97917

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.

---

## #97942 — Leon Sorokin — 2017-01-24T07:41:39+00:00

URL: https://externals.io/message/97917#97942 · In reply to: #97939

> Just assigned that to me, I'll try to come to it the next few days.

Great, thanks!

---

## #97957 — Michael Wallner — 2017-01-25T09:52:17+00:00

URL: https://externals.io/message/97917#97957 · In reply to: #97942

> 
> > […]
> 
> 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

---

## #97980 — Leon Sorokin — 2017-01-27T00:51:37+00:00

URL: https://externals.io/message/97917#97980 · In reply to: #97957

>
> 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.
