PHP Classes

Memory Leak

Recommend this page to a friend!

      PHP Serial  >  All threads  >  Memory Leak  >  (Un) Subscribe thread alerts  
Subject:Memory Leak
Summary:Using this class causes memory leak
Messages:1
Author:naomi
Date:2010-06-24 12:43:28
 

  1. Memory Leak   Reply   Report abuse  
Picture of naomi naomi - 2010-06-24 12:43:28
Hi,

When I run this, the memory usage goes up and up.

Am I doing something wrong, or is the class buggy?

<?

include "php_serial.class.php";

while ( 1 )
{
$serial = new phpSerial;
unset ( $serial );
echo memory_get_usage () . "\n";
sleep ( 1 );
}

?>