Commit Graph

191 Commits

Author SHA1 Message Date
Derick Rethans
7b170eea73 - MFB: Fixed bug #39935 (Extensions tidy,mcrypt,mhash,pdo_sqlite ignores
--with-libdir).
2006-12-23 18:00:49 +00:00
Nuno Lopes
15731bf29a convert a few more functions 2006-11-01 18:55:02 +00:00
Nuno Lopes
1fbbf4b050 start converting the tidy and tidyNode objects to be Unicode aware
I added a converter pointer per node, so that the text can be converted to unicode when requested
this commit also breaks a few tests in unicode mode, but it isnt scary at this time :P
2006-11-01 18:28:37 +00:00
Andrei Zmievski
83e0dbb3d2 - Add an extra parameter to the cast_object handler that can be used by
various types as needed.
- Use that parameter to pass a specific converter for
  IS_UNICODE/IS_STRING types.
2006-10-13 14:52:19 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Hannes Magnusson
9c669ecf1f Protos 2006-10-02 07:54:37 +00:00
Nuno Lopes
0289bacc94 MFB 2006-09-15 14:59:04 +00:00
Nuno Lopes
7af2495f81 MFB 2006-09-15 14:43:08 +00:00
Michael Wallner
aee8e73316 - add note why we can't have a chunk-sized output handler 2006-09-07 14:54:28 +00:00
Michael Wallner
83429c1620 - upgrade ob_tidyhandler 2006-09-06 17:55:09 +00:00
Nuno Lopes
cb07c93c04 sync code and tests with PHP_5_2 2006-09-05 15:25:44 +00:00
Antony Dovgal
c61a20eda0 z/Z problem fixes 2006-08-31 13:58:07 +00:00
Antony Dovgal
c8b6be096b no such function 2006-08-30 22:53:42 +00:00
Antony Dovgal
18c201100f fix tidy problems caused by returning local static buffers
looks like somebody forgot to MFB this patch..
2006-08-30 22:52:18 +00:00
Antony Dovgal
62ad57d1b0 add UEXPECTF 2006-08-30 22:34:27 +00:00
Antony Dovgal
9a3f6bfa40 fix a couple of leaks, add new test 2006-08-30 22:32:35 +00:00
Nuno Lopes
a313548528 MFB: static keywording 2006-08-14 15:17:03 +00:00
Michael Wallner
56b38cafa5 - fix compiler warnings 2006-07-25 23:03:56 +00:00
Michael Wallner
d792c96736 - reduce memory footprint 2006-07-25 22:57:31 +00:00
Nuno Lopes
7a95cb8344 remove some left overs plus static keywording 2006-07-08 00:04:37 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Michael Wallner
231ad17475 - explicit usage of TS macros
# this could have been raised a lot earlier
2006-06-03 11:19:44 +00:00
Michael Wallner
4ce0141713 - new output control code
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
#  - improve existing output handlers
#  - move zlib.output_compression cruft from SAPI.c to zlib.c
#  - output_encoding handling was ambigious, resp. is undefined yet
#  - more tests
2006-06-02 19:51:43 +00:00
Antony Dovgal
2873c3a5ad MFB: fix #37418 (tidy module crashes CLI version of PHP) 2006-05-24 21:22:27 +00:00
Nuno Lopes
fb18707cb4 fix test, sorry. 2006-05-07 18:17:53 +00:00
Nuno Lopes
eb5343ee47 convert a few more functions to unicode and adapt the tests as well 2006-05-07 18:11:40 +00:00
Nuno Lopes
50cf480153 fix thread safe build 2006-05-06 13:19:10 +00:00
Nuno Lopes
f7b62e2430 fix tests in Unicode mode 2006-05-06 11:19:37 +00:00
Nuno Lopes
e037edab61 use the new zend_unicode_to_ascii() function. this should also fix windows builds 2006-05-06 10:48:04 +00:00
Nuno Lopes
c4efa94326 rename test to follow the convention and expand it a little 2006-04-29 12:16:21 +00:00
Nuno Lopes
9e5bf64266 new test that reveals problems in other places. more details on the ML 2006-04-29 12:07:53 +00:00
Nuno Lopes
fc5917861e fix a bunch of tests in unicode mode by fixing the config array transverser
also fix the compiler warnings
# Andrey: is it possible to have a zend_convert_unicode_to_ascii() function please? it would make this code much simpler
2006-04-25 14:54:33 +00:00
Nuno Lopes
4aba1abfe9 mark a couple of functions as unicode-safe. no changes to code required 2006-04-25 12:41:59 +00:00
Nuno Lopes
b8cf6cbc24 upgrade tidy_get_release() to unicode.
#say now if anything is wrong before I start upgrading the rest of the functions
2006-04-23 12:56:10 +00:00
Nuno Lopes
ece1a5598a MFB: fix build with newer libtidy versions on windows 2006-04-19 22:10:44 +00:00
John Coggeshall
4618370e8d Fixing static build in windoze 2006-04-19 20:37:55 +00:00
Antony Dovgal
6a53a49c8b MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
2006-03-29 15:08:52 +00:00
John Coggeshall
d9a412a146 Under threat of being slept with by Marcus, adding new getParent() method
for node traversals
2006-03-23 14:22:40 +00:00
Ilia Alshanetsky
27e175eef0 So long safe_mode mode.
Also removed the magic_quotes configure option, no longer relevant since
the magic is gone :-).
2006-03-08 14:41:45 +00:00
Andi Gutmans
1efe984d08 - Get rid of using ENFORCE_SAFE_MODE. 2006-02-19 04:29:42 +00:00
Andi Gutmans
e94e25e621 Start nuking safe_mode. Still a lot of work to do... 2006-02-19 00:55:22 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
Antony Dovgal
e658842761 fix #35197 (Destructor is not called) and similar issues in other extensions 2005-11-14 21:52:27 +00:00
Michael Wallner
c8fd741ef0 fix bug #34965 tidy is not binary safe 2005-10-25 17:57:30 +00:00
Antony Dovgal
2791fea1b5 MF51: make GCC happy and improve CS a bit 2005-10-12 14:30:34 +00:00
Marcus Boerger
6ccd7ef74d - Update cast_object handlers 2005-10-05 19:12:44 +00:00
Sebastian Bergmann
52b001cc05 ZTS fixes. 2005-08-12 14:08:28 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
foobar
a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
John Coggeshall
335742c2ef Adding new function tidy_get_opt_doc() to return option documentation at runtime. Thanks to nlopess for the patch 2005-04-25 20:46:16 +00:00
foobar
b543778fed fix tests 2005-04-02 22:57:42 +00:00
John Coggeshall
c590531c07 Added three new properties to the node: line, column and if it is propreitary or not 2005-03-21 03:54:29 +00:00
Rasmus Lerdorf
bf7cb1179a Don't need MSHUTDOWN either here 2005-02-08 05:25:48 +00:00
Rasmus Lerdorf
3baf795c17 Get rid of more useless RINIT/RSHUTDOWN calls 2005-02-07 23:04:00 +00:00
Antony Dovgal
8596934a39 tidy_repair_string() should not try to load config file if there was no config parameter 2004-12-30 11:56:18 +00:00
Ilia Alshanetsky
46745e31ed This test is conditional on the libTidy library. On some configurations
tidy crashes due to a bug in the lib.
2004-11-30 00:01:30 +00:00
Ilia Alshanetsky
5796326d5a CS 2004-11-25 23:44:20 +00:00
Dmitry Stogov
c6fad655a0 Tests were fixed. 2004-11-22 15:12:32 +00:00
Antony Dovgal
f85a11f280 fix #30780 (tidy segfaults on 'new tidyNode;') 2004-11-14 13:33:59 +00:00
Ilia Alshanetsky
d5bac133ee Return FALSE when file cannot be found.
Specify full paths to the files used for the test.
2004-09-26 19:24:18 +00:00
John Coggeshall
2f4ca9a2d4 Removed examples which don't actually work anymore for PHP 4, and
updated those that do for PHP 5.
2004-08-28 18:10:21 +00:00
Zeev Suraski
99e343d250 Update prototypes 2004-08-04 16:41:13 +00:00
John Coggeshall
51ae1cc7bd Changing the Tidy version to 2.0 2004-07-14 02:41:53 +00:00
Ilia Alshanetsky
e4e71fd8ba MFB: Fixed bug #1713 (possible crash inside tidy_get_error_buffer()). 2004-06-24 14:20:59 +00:00
Ilia Alshanetsky
49fb6260b6 Fixed bug #1580 (Tidy configuration settings leak memory). 2004-06-08 14:55:14 +00:00
John Coggeshall
6b02a01c20 'tidy' should not be final, but 'tidyNode' should be. 2004-05-28 20:32:52 +00:00
Ilia Alshanetsky
e4c5e85697 Fixed leaks on fatal errors in tidy. 2004-05-23 17:22:21 +00:00
Marcus Boerger
d94136fc30 - Remove unused blocks 2004-05-19 08:45:46 +00:00
Ilia Alshanetsky
69b712410b Reset opt_name to NULL to ensure it's not re-used if numeric keys can be
found inside the options array.
2004-05-11 15:59:07 +00:00
John Coggeshall
399022f3c5 Renamed tidy_node to tidyNode, removed the tidy_exception class and updated
the tests.
2004-05-09 14:00:14 +00:00
Ilia Alshanetsky
be901ebeaf Fixed test. 2004-04-25 16:50:47 +00:00
John Coggeshall
8e1391ce49 No need for exception function, and renamed the 'error_buf' prop to
errorBuffer to conform with the rest of the ext.
2004-04-20 18:28:09 +00:00
Ilia Alshanetsky
39f820b8b8 Fixed compiler warnings. 2004-04-20 00:26:48 +00:00
John Coggeshall
544cdffd90 Fixing a tidy_getopt() bug, and converting all exceptions to E_WARNING 2004-04-18 07:58:19 +00:00
John Coggeshall
ba43e31e24 Fixed construct bug and Windows build. 2004-04-16 21:51:59 +00:00
Derick Rethans
2ed9c955b8 - Fix initializations 2004-04-16 18:55:19 +00:00
John Coggeshall
1fb0de4a6d Modified error handling:
- Trivial errors have been reduced to E_NOTICEs if possible
  - Bad, but not script-stopping errors (i.e. file not file) are E_WARNING
  - Truly bad things that make the extension unusable are not E_ERROR

  Exceptions are thrown only in a OO context for E_WARNINGs.
2004-04-16 15:46:41 +00:00
Frank M. Kromann
6ba2e4bc51 Declare variables before calling functions. This makes tidy compile on Win32. 2004-04-14 19:01:45 +00:00
John Coggeshall
9b21e0d0a9 - Removed things related to attribute classes / consts which no
longer exist in Tidy
- Changed protos in comment blocks to studlyCaps
- Fixed problem where Tidy would throw exceptions if called from
  a procedural context. Tidy will now cause E_ERRORs if called from
  procedural form.
2004-04-12 03:14:19 +00:00
Wez Furlong
719d336b4f export libtidy symbols 2004-03-22 23:07:55 +00:00
foobar
c9d3f3250c Fix typo 2004-02-26 13:22:11 +00:00
foobar
9b13b215fb - Moved internally used includes/macros/structs/etc. into tidy.c to prevent
any conflicts with any other library/header/extension.

# Never EVER put this stuff in extension's php_*.h file if possible!
2004-02-23 00:59:29 +00:00
Jan Lehnardt
905f4e98a2 - silence warning 2004-02-14 17:31:00 +00:00
Zeev Suraski
30171a7590 zend_default_classes.h -> zend_exceptions.h 2004-02-12 10:43:27 +00:00
John Coggeshall
fac5939f42 Updating tests that got left behind when we changed to studlyCaps
and fixed another test
2004-02-05 01:38:59 +00:00
Zeev Suraski
8424be849f - Update with new destructor code 2004-02-04 11:14:47 +00:00
Pierre Joye
0dd6bd1d9f - Update examples to studlyCaps syntax 2004-01-22 15:45:50 +00:00
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