Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37712 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19788 invoked from network); 18 May 2008 23:25:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2008 23:25:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=manuel@mausz.at; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=manuel@mausz.at; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mausz.at from 80.64.130.65 cause and error) X-PHP-List-Original-Sender: manuel@mausz.at X-Host-Fingerprint: 80.64.130.65 clan-server.at Received: from [80.64.130.65] ([80.64.130.65:55886] helo=shell.clan-server.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/98-57662-FCAB0384 for ; Sun, 18 May 2008 19:25:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shell.clan-server.at; h= message-id:date:from:mime-version:to:subject:references: in-reply-to:content-type:content-transfer-encoding; q=dns/txt; s= beta; bh=ot90gNI4Foi57uZekePfgATmPXqPe9AD4H1YeaFjtNQ=; b=JOxLylM diQ6yPX2YGt3z4aYbDwlD6ZBOmDAcZ4wQM59auZOJsIdHd9e4g6hm98I02sI36vC ITRUJIHmbgYPip6kjKqV7+oqsJCgUnufrfzur/qZ1OHSeYM5COCgx7XU726QBh0m Fc4yRaSjsMcRTSvafM/jEz62zyS94Y419sus= Received: (qmail 46862 invoked by uid 89); 19 May 2008 01:24:59 +0200 Received: from unknown (HELO ?192.168.0.10?) (manuel@mausz.at@80.108.106.138) by shell.clan-server.at with ESMTPA; 19 May 2008 01:24:59 +0200 Message-ID: <4830BACD.4000208@mausz.at> Date: Mon, 19 May 2008 01:25:01 +0200 User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: internals@lists.php.net References: <482E8391.9080004@lerdorf.com> <48309995.4080409@suse.de> <4830B5B1.70602@lerdorf.com> In-Reply-To: <4830B5B1.70602@lerdorf.com> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Curl POST emalloc leak? From: manuel@mausz.at (Manuel Mausz) Rasmus Lerdorf wrote: > Note that you don't actually need to send the request. It looks like > repeatedly doing: > > $ch = curl_init(); > curl_setopt($ch, CURLOPT_POSTFIELDS, $args); > curl_close($ch); > > Is enough to do it. Still looking at the code. Seems like > zend_llist_clean(&ch->to_free.str); isn't doing the right thing somehow. Is this really related to curl? # php -n -r 'for($i=0;$i<10;$i++) { for($args="",$j=0;$j<75;$j++) $args .= "a=$j&"; unset($args); echo memory_get_usage()."\n"; }' 55872 56100 56172 56240 56304 56364 56420 56420 56420 56420 / manuel