Memory Leak ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I am using PHP 4.3.9 in Linux 2.4.20-37. When I run this program:

echo "Memory Usage: " . memory_get_usage() . "\n";
  $dom = domxml_open_file("xml/ht_players.xml");
echo "Memory Usage: " . memory_get_usage() . "\n";

I get the this results:

Memory Usage: 15336
Memory Usage: 795544

Why memory usage grow so much if I use unset($dom)?. There is anyway
to prevent/fix this ?



PS: excuse my bad english :S

Site Timeline