note 85979 rejected from function.memory-get-usage by danbrown

From: Date: Fri, 26 Sep 2008 18:54:51 +0000
Subject: note 85979 rejected from function.memory-get-usage by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144821@lists.php.net to get a copy of this message
Note Submitter: ortiz.admin at g ---- teste.php: <? for($c=1; $c<=5; $c++) { $use = memory_get_usage(); $dif = $use - $MEM; $MEM = $use; echo "****MEM [$use][$dif]\n"; } ?> Output (PHP 5.2.0 CLI running on Debian Etch Linux): # php teste.php ****MEM [45228][45228] ****MEM [45596][368] ****MEM [45628][32] ****MEM [45660][32] ****MEM [45692][32] Is this a memory leak or I am missing something? I have a daemon process running and it eats ~1K at each function call. I can't live with this! Is there something that I can do other that re-code my daemon on other language (C) ?

« previous php.notes (#144821) next »