Commit Graph

203 Commits

Author SHA1 Message Date
John Coggeshall
1bad08a80f Moving the OO syntax to studlyCaps.
I am *not* changing this back :)
2004-01-21 10:19:56 +00:00
foobar
f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
Pierre Joye
5ecbbf0a8d - Fix the php dependency
(wide copy/paste is not that good no? ;) )
2004-01-15 19:33:10 +00:00
Wez Furlong
c69945961f fix crash when throwing an exception 2004-01-14 12:19:17 +00:00
Pierre Joye
bbc746c29c - Fix package.xml file 2004-01-14 10:24:26 +00:00
John Coggeshall
f3932751d8 Apparently MSVC is not C99 compatible making variable marco arguments
in the TIDY_THROW() marco broken in (at least) Win32. This provides a suitable
workaround for non-C99 compatible compilers.
2004-01-14 08:15:57 +00:00
John Coggeshall
0878fa901f Doh.. snuck by me! 2004-01-14 06:57:51 +00:00
John Coggeshall
a06377c32d Forgot to add these tests 2004-01-14 06:57:23 +00:00
John Coggeshall
6048907029 With the approval of Andi, changing the Tidy API to reduce the possible
amount of confusion when setting Tidy configuration options. All
configuration must now be done pre-parsing of the document. Removed
references to the tidy_attr class, as it is no longer used (since tidy 2.0)
and made tidy throw exceptions for all truly non-fatal errors.
2004-01-14 02:43:33 +00:00
John Coggeshall
9116f27504 This was way out of date. 2004-01-12 10:02:04 +00:00
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
John Coggeshall
962edd2d2e tidy_repair_string/file() don't get called from an existing tidy resource. 2004-01-08 09:21:05 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Frank M. Kromann
64e404229b Fix ZTS build 2004-01-08 00:03:54 +00:00
foobar
03c09f200c no need for double #include of same header file 2004-01-06 22:23:36 +00:00
John Coggeshall
d900d73763 Added an optional array parameter to tidy_parse_file/string to
fix a bug. Apparently some libtidy config options must be set
prior to parsing in order to work properly.
2004-01-06 18:24:17 +00:00
John Coggeshall
4ddb3d194d Added examples for tidy v2.0 (in PHP5) and a few more tests.. 2004-01-03 05:23:24 +00:00
Wez Furlong
cb6e4c5e13 Fix segfault in ZTS mode 2003-12-23 20:12:55 +00:00
Wez Furlong
51c342efae Make these build with new win32 build system. 2003-12-19 17:00:14 +00:00
Ilia Alshanetsky
90a5af75f6 Fixed memory leak in tidy_getopt() when fetching string values.
Removed unnecessary check in tidy_diagnose().
2003-12-19 14:24:59 +00:00
Ilia Alshanetsky
9f50065edd Fixed tidy tests. 2003-12-19 14:24:04 +00:00
foobar
48200cbee6 ws & cs 2003-12-18 19:59:58 +00:00
Wez Furlong
48a2b2a3d3 ZTS build and speling fix 2003-12-18 11:20:19 +00:00
Ilia Alshanetsky
664268b037 Always user Zend memory allocation wrappers. 2003-12-17 16:34:10 +00:00
Ilia Alshanetsky
b6a3f48d86 Always set panic call handler, allows us to address critical libtidy errors
from inside PHP.
When memory_limit is enabled use e* memory allocation macros to control
memory usage.
2003-12-15 21:56:55 +00:00
John Coggeshall
39e56b5ff6 Applying some minor fixes / CS changes by ilia 2003-12-15 01:43:45 +00:00
John Coggeshall
95cb88e5d0 Modified package.xml to reflect 2.0's beta status 2003-12-14 06:04:51 +00:00
John Coggeshall
3ab2935250 Tons of changes for Tidy 2.0 -- output buffering, multiple documents,
dual nature ($a->parse_file() and $a = tidy_parse_file()), etc.
2003-12-14 06:02:33 +00:00
Ilia Alshanetsky
089aa3639d Remove debug code. 2003-12-01 22:10:46 +00:00
John Coggeshall
365f0638fc Releasing 1.0.... 2003-11-13 17:50:39 +00:00
John Coggeshall
5d0f70a004 Should've added a few more cases to that bugfix switch. 2003-11-03 22:34:44 +00:00
John Coggeshall
8a36e954f0 Fixed a bug -- Nodes of certain types don't actually have ID values and PHP
would segv trying to read one.
2003-11-03 16:35:58 +00:00
John Coggeshall
bca08dabb4 Fixed a --enable-maintainer-zts glitch where TSRMLS_DC was being used
unnecessarily.
2003-09-25 09:32:55 +00:00
John Coggeshall
8cd08f7e9d Forgot package.xml 2003-09-22 18:45:46 +00:00
John Coggeshall
d8eeb8e286 Updated test cases and examples and cleaned up the new OO code so it will
be easier to maintain.
2003-09-22 18:40:38 +00:00
John Coggeshall
6b567f80c7 Completely re-wrote the ZE2 OO stuff to do it the proper way. It is not
considerably more stable, cleaner, and looks as if it works well :) This
probably is going to break any scripts which used it before, but oh well.
2003-09-22 17:06:45 +00:00
John Coggeshall
a7b75e2054 Complete refactoring of the OO support in tidy. Although currently
incomplete, it is a good start.
2003-09-22 00:12:54 +00:00
Ilia Alshanetsky
5927b50869 Fix ZTS build. 2003-09-21 20:24:39 +00:00
Ilia Alshanetsky
d14df17390 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).
2003-09-21 20:21:39 +00:00
Ilia Alshanetsky
4f6874b3ff Added tidy_repair_string() & tidy_repair_file() that allow for quick repair
of files & strings.
Modified tidy_parse_file() to accept include_path parameter.
Fixed a few bugs that may have allowed configurations directives loaded via
a file to carry over across requests.
2003-09-21 19:22:19 +00:00
Ilia Alshanetsky
4cd101abed Tidy Hijacked! Read all about it ;)
* No more tidy resources, it's now persistent and internal. This helps speed
  quite a bit, since the tidy resource only needs to be initialized once.
* Replace common code with macros.
* Added necessary safe_mode & open_basedir checks when working with files.
* Added ini option to allow loading of config file on startup.
* Show current configuration in phpinfo();
* Coding Style Cleanup
* Added tidy_get_config(), returns an associated array with all configuration
  values.
* Added tidy_reset_config(), it restores tidy configuration to default values.
* Fixed a possible crash inside tidy_setopt().
* Added myself to the credits.

More changes to follow.
2003-09-20 19:45:32 +00:00
John Coggeshall
ce38ec2b25 Moved things around and added some #ifdefs so that the extension can be used
in PHP 4 (without the ZE2 tree parsing).
2003-09-14 00:45:51 +00:00
John Coggeshall
fbff369efc Updating TODO 2003-08-15 06:10:36 +00:00
Edin Kadribasic
5c9b6bf0ca It builds much better when linked to the right lib 2003-08-08 12:15:17 +00:00
Edin Kadribasic
43a69b480f Windows build file (doesn't build yet) 2003-08-08 11:55:34 +00:00
John Coggeshall
a123efb6ed Whitespace fixes. 2003-08-07 17:53:48 +00:00
John Coggeshall
a8356a0dc6 Keeping up with ZE changes to the function struct, fixed tests 2003-08-06 21:32:46 +00:00
John Coggeshall
fb2b65e5fd PEAR packaging details 2003-08-06 20:17:10 +00:00
John Coggeshall
4c282bee86 ZTS fixes. 2003-08-06 00:19:31 +00:00
John Coggeshall
ea72aabfe2 Fix memory leaks 2003-08-06 00:01:22 +00:00
John Coggeshall
ac08f881e7 Segfault fix. 2003-08-01 09:48:06 +00:00
John Coggeshall
b724930c06 Fixed a number of memleaks and cleaned up the code a bit. 2003-08-01 09:12:35 +00:00
John Coggeshall
2fb97cdf95 Adding the tidy extension to PECL 2003-08-01 00:22:43 +00:00