Commit Graph

200 Commits

Author SHA1 Message Date
Patrick Allaert
74560ac75e Merging last tests made in HEAD 2009-09-01 13:41:18 +00:00
Zoe Slattery
467dbf859a test for /ext/tidy from stefan priebsch 2009-03-16 20:38:19 +00:00
Felipe Pena
857959838f - Fixed tests 2009-01-09 02:11:54 +00:00
Ilia Alshanetsky
194fff3551 Param parsing cleanup 2009-01-06 23:45:16 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Antony Dovgal
16fef2c6b0 MFH 2008-12-27 20:23:12 +00:00
Antony Dovgal
16df93413f MFH: fix compile warning 2008-12-27 20:22:10 +00:00
Felipe Pena
fc2fb50d09 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-11-17 11:28:01 +00:00
Felipe Pena
7a37fa2d6b - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:35:40 +00:00
Pierre Joye
c1ddd7bea5 - MFH: first static lib then dyn or old one 2008-08-01 11:21:50 +00:00
Felipe Pena
bedd323878 - Added arginfo (functions) 2008-07-03 01:55:48 +00:00
Felipe Pena
84a8bb038a MFH: New way for check void parameters 2008-03-10 22:15:36 +00:00
Marcus Boerger
6b778b0def - MFH revert over constfying 2008-01-27 15:04:41 +00:00
Nuno Lopes
65e86e459a more const kewywording
remove spl_functions_none var (wast used anywhere
2008-01-25 20:29:48 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Yiduo (David) Wang
4b4d634cb9 MFH: Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:22:07 +00:00
Dmitry Stogov
6c810b0d4c Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:00:48 +00:00
Nuno Lopes
fa0efe45e0 fix crash when fetching a node type that doesnt exist
# reported in a manual user note
2007-09-20 22:25:06 +00:00
Ilia Alshanetsky
a4e199018c Docs were added 2007-08-14 23:53:34 +00:00
Nuno Lopes
e73b3b0dc4 update for latest library rlease 2007-07-17 10:29:32 +00:00
Nuno Lopes
b8fbcae5b3 get ride of warnings (different signdess) 2007-05-04 17:11:05 +00:00
Ilia Alshanetsky
44aefd1ea0 Fixed test to work with new version of libtidy that strips spaces 2007-02-24 15:35:04 +00:00
Nuno Lopes
8b9f475ac6 merge the tidyNode::getParent() patch from HEAD 2007-02-11 16:07:30 +00:00
Nuno Lopes
a2b7b84685 add test 2007-01-23 19:26:24 +00:00
Nuno Lopes
8e8b369bc2 fix a few crashes 2007-01-23 19:23:29 +00:00
Nuno Lopes
65975bfc15 new tests. bump code coverage to 81% 2007-01-20 12:50:19 +00:00
Nuno Lopes
4b8911d062 fix another crash 2007-01-20 12:49:35 +00:00
Nuno Lopes
f3f2d827db fix crash. tests will follow 2007-01-20 12:27:18 +00:00
Nuno Lopes
d27d7619be fix segfaults with new libtidy. the patch is backwards compatible 2007-01-19 18:50:26 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Derick Rethans
7180422fdc - Fixed bug #39935 (Extensions tidy,mcrypt,mhash,pdo_sqlite ignores
--with-libdir).
2006-12-23 17:58:47 +00:00
Hannes Magnusson
050f94f746 MFH: Fix double "wron param count" messages 2006-11-03 14:46:48 +00:00
Hannes Magnusson
39219cf7fe protos 2006-10-02 07:58:13 +00:00
Nuno Lopes
0094b08c56 remove warning. thanks Tony for noticing 2006-09-15 14:57:52 +00:00
Nuno Lopes
96b9fb0787 remove more old code and macros. also remove the module global 'inst' (not needed anymore) 2006-09-15 14:33:34 +00:00
Nuno Lopes
aa6593f984 sync code and tests between HEAD and PHP_5_2 branches. what a confusion... 2006-09-05 15:23:26 +00:00
Nuno Lopes
dc8895ed82 finish the cleaning. also add a new test 2006-09-05 14:55:56 +00:00
Nuno Lopes
dadc6b8a3b remove some leftover code from the time tidy would throw exceptions 2006-09-05 13:50:22 +00:00
Antony Dovgal
de23f39d18 MFH: z/Z problem fixes 2006-08-31 13:58:31 +00:00
Antony Dovgal
de3d3ced29 no such function 2006-08-30 22:53:51 +00:00
Antony Dovgal
434d5e9be4 MFH: fix leak, add test 2006-08-30 22:34:48 +00:00
Nuno Lopes
ddb4d1fdcc move static declaration to *.c files
mroe static/const keywording
2006-08-14 20:08:18 +00:00
Nuno Lopes
0091c7e1b3 more static keywording
also remove the libtidy patch, as it is too old. users should use a newer libtify anyway
2006-08-14 15:09:08 +00:00
Nuno Lopes
c26991a9eb MFH 2006-07-08 00:13:17 +00:00
Dmitry Stogov
1dbaae2795 Added automatic module globals management 2006-06-15 18:33:09 +00:00
Antony Dovgal
4cb3d18276 fix #37418 (tidy module crashes CLI version of PHP) 2006-05-24 21:22:13 +00:00
Marcus Boerger
77c1b56cd7 - Update after api changes 2006-05-10 00:00:13 +00:00
Nuno Lopes
227ca46fb7 fix build with newer libtidy versions on windows
# first commit on php-src. whatch out :)
2006-04-19 21:47:20 +00:00
John Coggeshall
974dc0f5b4 Fixing static builds on windoze machines for our current lib version 2006-04-19 20:57:30 +00:00
Antony Dovgal
0f510a6a95 #ifdef new functions and use their bodies to make PECL extensions compile with PHP < 5.1.3
(as was agreed with Ilia)
2006-04-03 14:59:30 +00:00
Antony Dovgal
59b8592c8c 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)

to initialize and destroy zend_object structs
2006-03-29 14:28:43 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
foobar
3e669bc950 MFH: nuke php3 legacy 2005-12-06 02:28:41 +00:00
Antony Dovgal
241aa9a59d MFH: fix #35197 (Destructor is not called) and similar issues in other extensions 2005-11-14 22:03:02 +00:00
Michael Wallner
a329ecd8c4 fix bug #34965 tidy is not binary safe 2005-10-25 18:04:59 +00:00
Antony Dovgal
67f27b0aef make GCC happy and improve CS a bit 2005-10-12 14:29:26 +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