#35893 [NEW]: imap_fetch_overview memory leak?

From: Date: Wed, 04 Jan 2006 13:30:19 +0000
Subject: #35893 [NEW]: imap_fetch_overview memory leak?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91454@lists.php.net to get a copy of this message
From:             erik at phpcastle dot com
Operating system: Debian
PHP version:      5.1.1
PHP Bug Type:     IMAP related
Bug description:  imap_fetch_overview memory leak?

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 bug report at http://bugs.php.net/?id=35893&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35893&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35893&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35893&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35893&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=35893&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35893&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35893&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35893&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35893&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35893&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=35893&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=35893&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35893&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35893&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35893&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35893&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35893&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35893&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35893&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35893&r=mysqlcfg


Thread (8 messages)

« previous php.bugs (#91454) next »