Re: [PHP-DEV] Memory leak From: Andi Gutmans (andi <email protected>)
Date: 05/23/00

This is a known leak.
There is not much that can be done about it without slowing down Zend
significantly.
In any case, as you know it isn't a "real" leak because it is cleaned up
after each request.

Andi

On Tue, 23 May 2000, Andrei Zmievski wrote:

> <?
> $a = array(1, 2);
> $a[] = &$a;
> ?>
>
> ./zend_execute.c(413) : Freeing 0x001BDD38 (16 bytes), script=./test.php
> ./zend_execute.c(1944) : Freeing 0x00195A68 (48 bytes), script=./test.php
> zend_API.c(189) : Actual location (location was relayed)
> zend_hash.c(391) : Freeing 0x00190AC8 (35 bytes), script=./test.php
> Last leak repeated 1 time
> zend_hash.c(185) : Freeing 0x0018B660 (20 bytes), script=./test.php
>
> Probably need some code to prevent self-referential structures like
> that.
>
> -Andrei
> * Only 19,999 lines of C++ to my next ski trip... *
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>