|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-22 14:54 UTC] sterling@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Hiya If you run this script you will only see your mem usage (slowly) grow; it looks like curl_close won't free the memmory as it won't make a diff if you use it or not :) Greetz, Wico <? ob_implicit_flush(TRUE); for ($x = 0; $x < 100000; ++$x) { $handler = curl_init(); curl_setopt($handler, CURLOPT_URL, 'http://www.php.net/manual/en/pcre.pattern.syntax.php'); curl_setopt($handler, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($handler); curl_close($handler); unset($handler, $data); } ?>