[PHP-DEV] Bug #13225: Memmory leak in curl From: wico <email protected>
Date: 09/10/01

From: wico <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>