#35893 [Asn->Bgs]: imap_fetch_overview() leaks

From: Date: Sun, 08 Jan 2006 18:45:25 +0000
Subject: #35893 [Asn->Bgs]: imap_fetch_overview() leaks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91664@lists.php.net to get a copy of this message
 ID:               35893
 Updated by:       iliaa@php.net
 Reported By:      erik at phpcastle dot com
-Status:           Assigned
+Status:           Bogus
 Bug Type:         IMAP related
 Operating System: Debian
 PHP Version:      5.1.1
 Assigned To:      iliaa
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

There is no bug here, the return value of imap_fetch_overview() is a
complex array that contains objects within it. If you trully want to
"free" it you need to itterate through the array freeing each element
individually.


Previous Comments:
------------------------------------------------------------------------

[2006-01-05 21:31:53] tony2001@php.net

Assigned to the maintainer.

------------------------------------------------------------------------

[2006-01-05 01:39:25] erik at phpcastle dot com

I've tried also with php 5.1.1 for debian and didn't help either :)

------------------------------------------------------------------------

[2006-01-04 14:30:16] erik at phpcastle dot com

Description:
------------
Fist of all I use version 5.0.4-1

When opening an imap connection and then performing an
imap_fetch_overview the memory usage is increasing every time I call
imap_fetch_overview.

Reproduce code:
---------------
http://phpcastle.com/memusage_test.phps

Actual result:
--------------
-------Start-------
Memory usage: 62488	- Next: Open connection
Memory usage: 62544	- Next: Imap check
Memory usage: 62968	- Next: Clear $mailboxinfo
Memory usage: 62968	- Next: Fetch Overview
----------Num msg: 10-----
Memory usage: 74448	- Next: Clear Overview
Memory usage: 74448	- Next: Close connection
Memory usage: 74448	- Next: Clear imap stream
Memory usage: 74448	- Next: Open connection
Memory usage: 74448	- Next: Imap check
Memory usage: 74448	- Next: Clear $mailboxinfo
Memory usage: 74448	- Next: Fetch Overview
----------Num msg: 10-----
Memory usage: 75152	- Next: Clear Overview
Memory usage: 75152	- Next: Close connection
Memory usage: 75152	- Next: Clear imap stream
Memory usage: 75152	- Next: Open connection
Memory usage: 75152	- Next: Imap check
Memory usage: 75152	- Next: Clear $mailboxinfo
Memory usage: 75152	- Next: Fetch Overview
----------Num msg: 10-----
Memory usage: 75872	- Next: Clear Overview
Memory usage: 75872	- Next: Close connection
Memory usage: 75872	- Next: Clear imap stream
Memory usage: 75872	- Next: Open connection
Memory usage: 75872	- Next: Imap check
Memory usage: 75872	- Next: Clear $mailboxinfo
Memory usage: 75872	- Next: Fetch Overview
----------Num msg: 10-----
Memory usage: 76576	- Next: Clear Overview
Memory usage: 76576	- Next: Close connection
Memory usage: 76576	- Next: Clear imap stream
Memory usage: 76576	-------End------- 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35893&edit=1


Thread (8 messages)

« previous php.bugs (#91664) next »