So this looks to me like a bug in memory_get_usage(), not a memory leak.
heh - you are most probably right - there was also other fishy behavior of memory_get_usage reported in php 5.2 at http://bugs.php.net/bug.php?id=39652. but still i have a hunch that there is something not right: i have peace of code that works as daemon and i started to experience increasing memory usage over time ended with memory allocation errors after moving it from php4 to php5. i'll keep on investigating. -- regards, Pawel Kudzia / .PaKud / http://pqd.one.pl -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

