From:             [EMAIL PROTECTED]
Operating system: RedHat7.1
PHP version:      4.1.1
PHP Bug Type:     DOM XML related
Bug description:  memory leak with xmldoc

Use a small xml string and start this code
and look at your memory server, I've 150Mb
before the end of the loops :-(
Of course, I've the same result with a few loops
an big xml data.

for($j=1;$j<=20;$j++){
        for($i=1;$i<=1000;$i++){
                xmldoc($xml);
                echo "<br>loop $j:$i\n";
        }
        sleep(2);
}

Is it a memory leak?
Or a feature to add like xmldocfree()?

-- 
Edit bug report at http://bugs.php.net/?id=15446&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15446&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15446&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15446&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15446&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15446&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15446&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15446&r=notenoughinfo


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to