Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5946 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94100 invoked by uid 1010); 1 Dec 2003 21:11:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94063 invoked from network); 1 Dec 2003 21:11:29 -0000 Received: from unknown (HELO mailout03.sul.t-online.com) (194.25.134.81) by pb1.pair.com with SMTP; 1 Dec 2003 21:11:29 -0000 Received: from sfwd01.aul.t-online.de by mailout03.sul.t-online.com with smtp id 1AQvKJ-0002Ou-01; Mon, 01 Dec 2003 22:11:27 +0100 Received: from vivaldi.local (ZekLhMZZoeiy6v5e-LcRVSm3MaLvgfg0DRNz6Ap4zj+07xDY5osywG@[80.138.175.146]) by afwd01.sul.t-online.com with esmtp id 1AQvKI-1GVBey0; Mon, 1 Dec 2003 22:11:26 +0100 To: Thies C.Arntzen Date: Mon, 1 Dec 2003 22:11:10 +0100 User-Agent: KMail/1.5.1 Cc: Thies C.Arntzen , PHP Internals References: <200312010845.23909.ilia@prohost.org> <200312011839.57724.georg@php.net> <55C160D0-2426-11D8-B273-000393C4A12A@thiesos.org> In-Reply-To: <55C160D0-2426-11D8-B273-000393C4A12A@thiesos.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200312012211.11391.georg@php.net> X-Seen: false X-ID: ZekLhMZZoeiy6v5e-LcRVSm3MaLvgfg0DRNz6Ap4zj+07xDY5osywG Subject: Re: [PHP-DEV] Tidy & PHP5 From: georg@php.net (Georg Richter) > before bundling i'd like to see the api refined... > > right now it's not possible to work with more than one html-doc at a > time. (tidy_parse_file() does not return a resource to the internal > tidy doc, so you can only have one doc at a time) Yes, Thies is right here! But s/resource/object :) I don't know the tidy api very well, but wouldn't be the normal way to have an object for a Document (which was created by tidyCreate) instead to use a global value for? So you can work with multiple documents, and you also can add additional (userland) functionality. This would be the "normal" behaviour for new php5 extensions (simplexml, sqlite, mysqli, mono, ...). Just my 0,024$ Georg