note 97940 deleted from function.file-get-contents by danbrown

From: Date: Mon, 17 May 2010 13:49:46 +0000
Subject: note 97940 deleted from function.file-get-contents by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-169320@lists.php.net to get a copy of this message
Note Submitter: spam at lgb dot hu ---- Warning, it seems there is a PHP memory leak when someone wants to use file_get_contents() with a context, see bug report http://bugs.php.net/bug.php?id=40257 A commenter said there that there is no way to free a context since it's autmatically freed up on "shutdown". However it's not true it seems, I have an XML-RPC request sender script which sends thousands of requests with file_get_contents(). Every time I am using file_get_contents() with a context I loose about 1-2Kbyte of memory, so shortly I run out of memory ...

« previous php.notes (#169320) next »