cvs: pecl /tidy README libtidy.txt
| From: | Ilia Alshanetsky | Date: | Sun, 21 Sep 2003 20:21:39 +0000 |
| Subject: | cvs: pecl /tidy README libtidy.txt | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-466@lists.php.net to get a copy of this message | ||
iliaa Sun Sep 21 16:21:39 2003 EDT
Added files:
/pecl/tidy libtidy.txt
Modified files:
/pecl/tidy README
Log:
Added a note & fix for a memory leak in libtidy.
This will be removed once the libtidy developers release a patched version
of their library (or we start bundling the patched version).
Index: pecl/tidy/README
diff -u pecl/tidy/README:1.1 pecl/tidy/README:1.2
--- pecl/tidy/README:1.1 Wed Aug 6 16:17:10 2003
+++ pecl/tidy/README Sun Sep 21 16:21:39 2003
@@ -7,6 +7,15 @@
to clean, repair, and traverse HTML, XHTML, and XML documents -- including ones with
embedded scripting languages such as PHP or ASP within them using OO constructs.
+---------------------------------------------------------------------------------------
+!! Important Note !!
+---------------------------------------------------------------------------------------
+At this time libtidy has a small memory leak inside the ParseConfigFileEnc() function
+used to load configuration from a file. If you intend to use this functionality apply
+the "libtidy.txt" patch (cd tidy/src/; patch -p0 < libtidy.txt) to libtidy sources and
+then recompile libtidy.
+---------------------------------------------------------------------------------------
+
The Tidy extension has two separate APIs, one for general parsing, cleaning, and
repairing and another for document traversal. The general API is provided below:
Index: pecl/tidy/libtidy.txt
+++ pecl/tidy/libtidy.txt
--- config.c Mon Jun 9 04:07:55 2003
+++ config.c Sun Sep 21 16:13:04 2003
@@ -719,7 +719,8 @@
}
fclose( fin );
- MemFree( cfg->cfgIn );
+ MemFree( cfg->cfgIn->source.sourceData );
+ MemFree( cfg->cfgIn );
cfg->cfgIn = NULL;
}