[xdebug-dev] Bug 0000290: Function call leaks memory

From: <noreply[@]lists.xdebug.org>
Date: Tue, 3 Jul 2007 20:30:48 +0200

The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000290
======================================================================
Reporter: Barro
Handler:
======================================================================
Project: Xdebug
Bug ID: 290
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: new
Operating System: Debian GNU/Linux testing/unstable
PHP Version: 5.2-dev
Xdebug Version: 2.0.0rc4
======================================================================
Date Submitted: 2007-07-03 20:30 CEST
Last Modified: 2007-07-03 20:30 CEST
======================================================================
Summary: Function call leaks memory
Description:
Xdebug leaks memory on every function call. A code to reproduce this
behaviour is in simplicity following:

<?php

$a = 'foo';

function bar($a)
{
    $b = $a;
}

for ($i = 0; $i < 10000000; $i++) {
    bar($a);
}

?>

Execute that and watch the memory usage climb for example using "top"
command (and noticing disk swapping if you don't do anything).

Xdebug version xdebug-2.0.0RC4
PHP-version 5.2.3

Both PHP and Xdebug are compiled directly from sources and default
settings are used in both to make sure that the ones included in Debian
don't interfere with testing.

This also happens on a few other machines with Ubuntu Feisty installed (by
using the PHP version 5.2.1 that is in it).
======================================================================

Bug History
Date Modified Username Field Change
======================================================================
2007-07-03 20:30Barro New Bug
2007-07-03 20:30Barro Bug Monitored: Barro
======================================================================
Received on Tue Jul 03 2007 - 20:30:49 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST