Re: Mem Leak in Tidy, ZE2 Bug?

From: Date: Tue, 08 Jun 2004 10:42:39 +0000
Subject: Re: Mem Leak in Tidy, ZE2 Bug?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-10311@lists.php.net to get a copy of this message
> 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

« previous php.internals (#10311) next »