Bug #13225: Memmory leak in curl

From: Date: Mon, 10 Sep 2001 08:46:48 +0000
Subject: Bug #13225: Memmory leak in curl
Groups: php.dev 
Request: Send a blank email to php-dev+get-65638@lists.php.net to get a copy of this message
From: wico@cnh.nl Operating system: linux PHP version: 4.0.6 PHP Bug Type: cURL related Bug description: Memmory leak in curl 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); } ?> -- Edit bug report at: http://bugs.php.net/?id=13225&edit=1

« previous php.dev (#65638) next »