Bug #73493 [NEW]: imap_fetchbody() [still] leaks memory

From: Date: Fri, 11 Nov 2016 04:55:19 +0000
Subject: Bug #73493 [NEW]: imap_fetchbody() [still] leaks memory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205293@lists.php.net to get a copy of this message
From: leeoniya at gmail dot com Operating system: Win10 x64 PHP version: 7.0Git-2016-11-11 (snap) Package: IMAP related Bug Type: Bug Bug description:imap_fetchbody() [still] leaks memory Description: ------------ It looks like this was an issue in the past that was resolved [1], but it looks like this is still a problem. If you run attached code on a mailbox of a few hundred messages, you can see the mem grow continuously. Using imap_savebody() also leaks. [1] https://bugs.php.net/bug.php?id=47940 Test script: --------------- $imap = imap_open(IMAP_PATH, IMAP_USER, IMAP_PASS); $uids = imap_sort($imap, SORTARRIVAL, 1, SE_UID | SE_NOPREFETCH); $len = count($uids); for ($i = 0; $i < $len; $i++) $raw = imap_fetchbody($imap, $uids[$i], "", FT_UID | FT_PEEK); -- Edit bug report at https://bugs.php.net/bug.php?id=73493&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73493&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73493&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73493&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73493&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73493&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73493&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73493&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73493&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73493&r=support Expected behavior: https://bugs.php.net/fix.php?id=73493&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73493&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73493&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73493&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73493&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73493&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73493&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73493&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73493&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73493&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73493&r=mysqlcfg

« previous php.bugs (#205293) next »