Bug #13225 Updated: Memmory leak in curl

From: Date: Mon, 22 Oct 2001 18:54:10 +0000
Subject: Bug #13225 Updated: Memmory leak in curl
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68723@lists.php.net to get a copy of this message
ID: 13225 Updated by: sterling Reported By: wico@cnh.nl Old Status: Open Status: Bogus Bug Type: cURL related Operating System: linux PHP Version: 4.0.6 New Comment: not a php bug. Previous Comments: ------------------------------------------------------------------------ [2001-09-10 04:46:48] wico@cnh.nl 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 this bug report at http://bugs.php.net/?id=13225&edit=1

« previous php.dev (#68723) next »