Edit report at https://bugs.php.net/bug.php?id=60570&edit=1
ID: 60570 Comment by: roberto at spadim dot com dot br Reported by: roberto at spadim dot com dot br Summary: memory leak with create context Status: Closed Type: Bug Package: Streams related Operating System: LINUX PHP Version: 5.3.8 Assigned To: cataphract Block user comment: N Private report: N New Comment: ok i will test it soon no problem :) i helped before and i won´t stop helping :) thanks guys your are wellcome Previous Comments: ------------------------------------------------------------------------ [2011-12-21 15:45:22] cataphr...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2011-12-21 15:44:35] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revision&revision=321298 Log: - Fixed bug #60570 (http wrapper leaks context resource if request fails/is redirected). ------------------------------------------------------------------------ [2011-12-21 15:36:03] roberto at spadim dot com dot br it´s a bit strange since if i don´t create a new context (calling a function or creating a new context) the memory leak don´t occur well, if the problem was founded that´s ok :) i´m just waiting something to solve it i´m changing ini varible to change http timeout and not using contexts while no other workaround is founded ------------------------------------------------------------------------ [2011-12-21 15:07:41] cataphr...@php.net The problem is simply that the context resource leaks everytime the http request fails. Seems to have been introduce in r262454. ------------------------------------------------------------------------ [2011-12-21 15:03:29] roberto at spadim dot com dot br maybe the array parameters isn´t being removed from memory? i tryed to change code inserting a comma after timeout parameter "'timeout'=>1," and it add more memory leak per interaction more commas = more memory leak $context= stream_context_create(array('http'=>array('timeout'=>1,,,,,))); ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=60570 -- Edit this bug report at https://bugs.php.net/bug.php?id=60570&edit=1