note 97940 added to function.file-get-contents

From: Date: Mon, 17 May 2010 11:26:44 +0000
Subject: note 97940 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-169319@lists.php.net to get a copy of this message
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 ... ---- Server IP: 69.147.83.197 Probable Submitter: 213.163.0.181 ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- https://master.php.net/note/edit/97940 Del: integrated -- https://master.php.net/note/delete/97940/integrated Del: useless -- https://master.php.net/note/delete/97940/useless Del: bad code -- https://master.php.net/note/delete/97940/bad+code Del: spam -- https://master.php.net/note/delete/97940/spam Del: non-english -- https://master.php.net/note/delete/97940/non-english Del: in docs -- https://master.php.net/note/delete/97940/in+docs Del: other reasons-- https://master.php.net/note/delete/97940 Reject -- https://master.php.net/note/reject/97940 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169319) next »