#23331 [NEW]: Definite memory leak
| From: | jakub at icewarp dot com | Date: | Thu, 24 Apr 2003 14:29:46 +0000 |
| Subject: | #23331 [NEW]: Definite memory leak | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-38302@lists.php.net to get a copy of this message | ||
From: jakub at icewarp dot com
Operating system: W2K
PHP version: 4.3.2RC1
PHP Bug Type: COM related
Bug description: Definite memory leak
I have seen a few threads about Memory leaks in the COM object
implementation here but from what I see this has never been solved. For
instance this little piece of code proves it:
$excel=new COM("Excel.Application");
for ($i=0;$i<50000;$i++) $excel->sheetsinnewworkbook= "1";
die();
It's not always a property that causes the memory leak. It's also the
method you call when you pass strings to it. Also when you try to
reference a property that does not exist. I'm using my own COM object to
test it with and 5000 cycles o calling a simple 3 string parameter
function uses up to 30MB of RAM.
Please try to fix it. We have to use a CGI mode where every instance of
PHP is freed completely. But we want to use the ISAPI it is not possible
to do that now. Thank you
Jakub
--
Edit bug report at http://bugs.php.net/?id=23331&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23331&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23331&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23331&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23331&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23331&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23331&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23331&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23331&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23331&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23331&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23331&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23331&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23331&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23331&r=gnused