From:             [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to