Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10311 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96522 invoked by uid 1010); 8 Jun 2004 10:39:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96498 invoked from network); 8 Jun 2004 10:39:01 -0000 Received: from unknown (HELO sapo.pt) (212.55.154.26) by pb1.pair.com with SMTP; 8 Jun 2004 10:39:01 -0000 Received: (qmail 9424 invoked from network); 8 Jun 2004 10:39:00 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.151) by relay6 with SMTP; 8 Jun 2004 10:39:00 -0000 Received: (qmail 9356 invoked from network); 8 Jun 2004 10:38:32 -0000 Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.137.58]) (envelope-sender ) by mta1 (qmail-ldap-1.03) with SMTP for ; 8 Jun 2004 10:38:32 -0000 Message-ID: <009f01c44d45$51d9d8d0$0100a8c0@pc07653> To: "Christian Stocker" , References: <40C5959A.2010600@bitflux.ch> Date: Tue, 8 Jun 2004 11:42:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: [PHP-DEV] Mem Leak in Tidy, ZE2 Bug? From: nlopess@php.net ("Nuno Lopes") > Hi > > I'm not sure, who to blame about this one, but I run against a memory > leak if I run the following code: > *** > $html = "foo"; > $options = array("char-encoding" => "utf8"); > $tidy = new tidy(); > $tidy->parseString($html,$options,$options['char-encoding']); > print $tidy; > *** > > If the 3rd param is not part of the array of the second param, there's > no memleak.. > Any ideas, what's going wrong here? I have no problems here. You shouldn't use the char-encoding as option (the second paramether)!! You should just set the last parameter, as it will set the input and ouput charset!! there is also a open bug for tidy: http://bugs.php.net/?id=28578 > If it's tidy, I'll file a bug report, if it's ZE2, it's maybe something > to be fixed before 5.0.0 ;) > > chregu