Commit Graph

510 Commits

Author SHA1 Message Date
Zoe Slattery
229bcbdfc6 Tests from London test fest 2008 2008-05-15 12:23:47 +00:00
Antony Dovgal
b3b5126954 fix test names 2008-05-14 13:04:05 +00:00
Zoe Slattery
09aa62229a Committing corrected test from Eric Stewart 2008-05-03 20:36:36 +00:00
Rob Richards
18b63c9d58 MFH: fix bug #44648 (Attribute names not checked for wellformedness)
add test
fix some warnings
2008-04-17 20:21:04 +00:00
Felipe Pena
2b10c53ae1 MFH: Dropped zend.ze1_compatibility_mode
[DOC]
2008-03-18 14:10:45 +00:00
Felipe Pena
84a8bb038a MFH: New way for check void parameters 2008-03-10 22:15:36 +00:00
David Coallier
47f576db8f - MFH
- If libxml dotted version smaller than 2.6.20 it's a fail. Patch from scoates
2008-03-08 19:11:18 +00:00
Sebastian Bergmann
00586196de MFH: Add missing Reflection API metadata for DOM classes. 2008-02-04 15:22:59 +00:00
Dmitry Stogov
240fa244c3 Improved PHP binary size and startup speed with GCC4 visibility control (Nuno) 2008-01-30 09:41:12 +00:00
Sebastian Bergmann
0c749ab10a MFH: Fix arginfo. 2008-01-30 06:48:13 +00:00
Sebastian Bergmann
c08da2a66d MFH: Add Reflection API metadata for DOMXPath. 2008-01-29 15:55:23 +00:00
Sebastian Bergmann
8b87b2b12b MFH: Add Reflection API metadata for DOMNode. 2008-01-29 15:23:18 +00:00
Rob Richards
3e69124430 backport functionality to call user functions within XPath
add test
2008-01-25 16:13:04 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Rob Richards
4cd1b9d803 MFH: Fix bug #43364 (recursive xincludes don't remove internal nodes properly)
add test
2007-11-28 10:44:21 +00:00
Dmitry Stogov
969dda1b51 Fixed tests 2007-11-19 08:19:31 +00:00
Jani Taskinen
a541bb8078 - Fix tests
- Update README.PARAMETER_PARSING_API
2007-11-02 19:41:12 +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
Rob Richards
78b2aaa954 MFH: fix bug #42462 (Segmentation when trying to set an attribute in DOMElement) 2007-08-30 16:32:34 +00:00
Rob Richards
9abc90728d MFH: fix bug #42082 (NodeList length zero should be empty). (Hannes)
add and update tests
2007-08-06 16:22:24 +00:00
Ilia Alshanetsky
d3571ea2a9 WS 2007-07-27 00:20:43 +00:00
Ilia Alshanetsky
1bc2880c46 Test name formatting fixes 2007-07-24 14:07:42 +00:00
foobar
7ed3c4536d MFH: Fix some configure --help texts 2007-07-03 17:25:43 +00:00
Rob Richards
7d3c91bed3 free wholetext properly 2007-05-14 11:52:35 +00:00
Rob Richards
f42784219a Fixed bug #41374 (wholetext concats values of wrong nodes).
add test
2007-05-14 11:44:15 +00:00
Antony Dovgal
1f65545121 fix test names 2007-05-07 18:03:01 +00:00
Rob Richards
24434e7ba2 fix bug #41257 (lookupNamespaceURI does not work as expected)
fix related issue in isDefaultNamespace
add test
reconcile namespaces when setting attribute in a new namespace
2007-05-04 19:30:59 +00:00
Rob Richards
0291924222 allow registered classes to be changed 2007-04-03 11:57:04 +00:00
Rob Richards
b172d3f8cd MFH: fix bug #40836 (Segfault in ext/dom)
add test
2007-03-18 21:31:05 +00:00
Antony Dovgal
6bef5f8e80 typo in the test name 2007-01-20 19:19:29 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Rob Richards
60941b02dc fix issues identitified by coverity 2006-12-21 12:51:26 +00:00
Antony Dovgal
60a2df7db2 add a note that libxml2 2.6.2x is required 2006-11-13 12:54:04 +00:00
Hannes Magnusson
e94670d4d6 MFH tests 2006-10-09 16:02:34 +00:00
Ilia Alshanetsky
98b16064b4 Added missing safety checks (Problem identified by Coverity scan) 2006-10-07 19:59:19 +00:00
Ilia Alshanetsky
12f7021e12 Added missing safety checks (Problem identified by Coverity scan) 2006-10-07 19:40:58 +00:00
Rob Richards
7a2a383a9f fix bug #39035 (Compatibilty issue between DOM and ze1_compatibility_mode 2006-10-04 12:02:49 +00:00
Rob Richards
2a452afb6d fix some compiler warnings 2006-09-28 10:11:36 +00:00
Rob Richards
b23dfcc3ad fix bug #38949 (Cannot get xmlns value attribute)
add test
2006-09-27 10:31:24 +00:00
Ilia Alshanetsky
9f217cd983 One last expand_filepath() check 2006-09-16 19:07:35 +00:00
Rob Richards
1819e947f9 implement workaround for bug #38823 (DOMComment->appendData does nothing)
fix bug #38850 (lookupNamespaceURI doesn't return default namespace)
add test
2006-09-16 13:54:52 +00:00
Antony Dovgal
55d900ef8e MFH: free node pointer using correct function
fixes leak in ext/dom/tests/dom_create_element.phpt
2006-09-15 07:44:20 +00:00
Rob Richards
6fea033c6e fix bug #38813 (DOMEntityReference->__construct crashes when called explicitly) 2006-09-14 13:35:02 +00:00
Rob Richards
c6b9662372 fix #38474 (getAttribute select attribute by order, even when prefixed)
add test
2006-08-28 23:36:23 +00:00
Rob Richards
3048cd7558 fix underlying issue for bug #38438 2006-08-14 11:29:15 +00:00
Ilia Alshanetsky
baff4e0ab5 Fixed bug #38438 (DOMNodeList->item(0) segfault on empty NodeList) 2006-08-13 15:02:41 +00:00
Antony Dovgal
8a3002d933 fix types of the variables 2006-08-07 20:23:35 +00:00
Christian Stocker
2dbcfcb8cb improved code (after suggestion by helly) 2006-07-16 16:04:09 +00:00
Christian Stocker
dc8ba6f475 Added DOMNode::getNodePath() for getting an XPath for a node. 2006-07-16 15:03:53 +00:00
Hannes Magnusson
aaa1d62614 MFH: fix/add SKIPIF 2006-06-27 00:09:43 +00:00
Hannes Magnusson
c14ba0f124 MFH: Missing header include 2006-06-20 18:04:25 +00:00
Antony Dovgal
eaf4ea2e74 MFH: nuke unused variables and init variables when needed 2006-06-20 13:21:16 +00:00
Ilia Alshanetsky
b8bee35259 Removed unused variables. 2006-06-13 20:19:37 +00:00
Rob Richards
704ed9625c nuke unused call 2006-06-06 12:08:11 +00:00
Zeev Suraski
66b90c7052 Final ze1_compat restoration - it was mostly done by hand, so if anybody
spots any (new) problems, let me know.  Test wise, the same tests that
failed before are failing now.
2006-06-05 16:53:21 +00:00
Rob Richards
a86232d9bb MFH: add setIdAttribute, setIdAttributeNS and setIdAttributeNode functionality 2006-06-02 16:17:25 +00:00
Rob Richards
a7aa62ded1 MFH: add C14N() and C14NFile() methods to perform XML canonicalization
add test
2006-05-26 18:23:50 +00:00
Rob Richards
c384b34ae9 MFH: add registerNodeClass() method
- update attribute isID functionality
 - add test
2006-05-22 17:12:26 +00:00
Rob Richards
6f95fa95cc add tests 2006-05-17 16:36:21 +00:00
Rob Richards
aebc5833a9 Synch from HEAD
- Fix bug #37456 (DOMElement->setAttribute() loops forever)
- update iterators for engine change merged from HEAD
2006-05-17 16:35:50 +00:00
Marcus Boerger
0dacd6d5c0 - ze1 cleanup (bjori) /thx 2006-05-10 19:41:34 +00:00
Frank M. Kromann
815d3169ba Fix win32 build 2006-05-10 18:32:50 +00:00
Marcus Boerger
77c1b56cd7 - Update after api changes 2006-05-10 00:00:13 +00:00
Rob Richards
f57c75112d Fix bug #37277 (cloning Dom Documents or Nodes does not work)
Proper fix for bug #36859
add test
2006-05-03 08:43:04 +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
Antony Dovgal
d085b37f66 fix #36859 (DOMElement crashes when calling __construct when clone'ing) 2006-03-26 00:23:25 +00:00
Rob Richards
aaec067578 Fixed bug #36756 (DOMDocument::removeChild corrupts node)
add test
2006-03-18 11:44:49 +00:00
Rob Richards
65211cddcc fix crashes using notations and entity decls
add test
2006-03-03 20:15:10 +00:00
Michael Wallner
6520ff9afc - fix crash with DOMImplementation::createDocumentType("name:") 2006-02-24 10:19:54 +00:00
Rob Richards
ec605ac2ad fix possible crash in textContent 2006-01-25 17:34:05 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
Antony Dovgal
8aedeb8513 tix fypo 2005-12-18 21:17:07 +00:00
Marcus Boerger
adc26d2bca - Fix export 2005-12-17 15:41:56 +00:00
Antony Dovgal
460a4fecef fix test 2005-12-16 14:57:29 +00:00
foobar
3e669bc950 MFH: nuke php3 legacy 2005-12-06 02:28:41 +00:00
Rob Richards
ad7732c0cc Fixed bug #35342 (isset(DOMNodeList->length) returns false)
add test
2005-11-23 03:12:47 +00:00
Dmitry Stogov
3c19326480 Allow recursive calls to __get/__set for different properties 2005-11-15 14:18:15 +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
Marcus Boerger
c388f97ac9 - Fix test expectations 2005-11-06 10:51:29 +00:00
Rasmus Lerdorf
04a291d39a This SimpleXML requirement is no longer needed and by removing it we
remove a circular dep where it was impossible to build simplexml shared
and not load it.
2005-11-05 22:25:12 +00:00
Rob Richards
2e8f773eee MFH: fix crash setting attr from foreign doc (throws exception)
add test
2005-10-27 23:51:22 +00:00
Ilia Alshanetsky
d4696abdb9 Fixed tests to work with ZTS builds 2005-10-20 19:22:09 +00:00
Dmitry Stogov
5eb6b78c90 Fixed access to uninitialized value 2005-09-19 18:47:56 +00:00
Rob Richards
06e3607102 MFH: add save options parameter 2005-09-08 10:39:30 +00:00
Rob Richards
1b02f3ec31 MFH: Fixed bug #34276 (setAttributeNS doesn't work with default namespace)
Add test
2005-08-28 16:23:25 +00:00
foobar
286d53397a MFH 2005-08-18 12:40:41 +00:00
Rob Richards
8bdc4285aa MFH: Fixed bug #34103 (line numbering not maintained in dom document) 2005-08-15 17:13:57 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Rob Richards
b27d49579a Allow NULL namespaceURI for getAttributeNodeNS 2005-07-07 10:36:08 +00:00
foobar
2967f6116f - Fixed bugs #33431, #33432 ("int" used instead of "long" in parameter parsing) 2005-06-26 22:34:26 +00:00
foobar
eccc955ed5 fix test 2005-06-23 10:57:52 +00:00
Dmitry Stogov
fd2d420919 Fixed test file according to latest debug_backtrace() fixes 2005-06-23 09:25:00 +00:00
Rob Richards
9ad129468a - Fix bug #33299 (php:function no longer handles returned dom objects)
- maybe fix #33431/33432
2005-06-22 19:56:30 +00:00
Dmitry Stogov
60328db583 Debug backtrace was fixed 2005-06-22 15:30:14 +00:00
Dmitry Stogov
f47c78487b Improved PHP extension loading mechanism with support for module dependencies and conflicts 2005-06-17 09:39:23 +00:00
foobar
a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
Rob Richards
022461d976 - correct fix for bug #33059
- fix issue in other methods
2005-05-20 15:01:38 +00:00
Ilia Alshanetsky
e117b6bad2 Fixed bug #33059 (crash when moving xml attribute set in dtd). 2005-05-19 13:47:21 +00:00
foobar
626253940e - Added PHP_INSTALL_HEADERS() macro
- Fixed several VPATH build issues
- Changed all awk calls to use $AWK
- Changed all mkdir calls to use "$php_shtool mkdir"
2005-05-07 02:51:53 +00:00
Rob Richards
6d2fd215e9 Fix bug #32930 (class extending DOMDocument doesn't clone properly) 2005-05-03 22:55:03 +00:00
foobar
39bcbfc306 - Made the libxml related stuff to error out if someone does --disable-all
or --disable-libxml. Better than silently just leave the ext out..
2005-04-27 13:12:55 +00:00
Ilia Alshanetsky
8b8940ba84 php_error() -> php_error_docref(). 2005-04-21 21:11:23 +00:00
Rob Richards
334d756ffa Fix bug #32755 Segfault in replaceChild() when DocumentFragment has no children
update test
2005-04-18 23:07:50 +00:00
Andrey Hristov
d9f5f1ee08 fix memory corruption on 64bit in imagefttext(),
domdocument::load() and domdocument::loadxml()
2005-04-10 21:37:17 +00:00
Rob Richards
5313e98b72 - Fixed bug #32615 (Segfault in replaceChild() using fragment when
previousSibling is NULL)
- add test
2005-04-08 15:58:24 +00:00
Rob Richards
9c3919c3a3 fix test 2005-04-08 12:18:57 +00:00
Rob Richards
8913ddc295 use new error handling when not throwing exceptions 2005-02-20 22:01:24 +00:00
Rob Richards
b1157ff8d9 Fragment must have associated document to append xml otherwise it is read-only 2005-02-18 11:57:24 +00:00
Rob Richards
e46e7309f8 Fixed bug #32011 (Fragments which replaced Nodes are not globaly useable) 2005-02-18 11:47:20 +00:00
foobar
67a965a7e0 No tabs here 2005-02-15 01:44:10 +00:00
Rob Richards
08592b38da Fixed bug #31878 (Segmentation fault using clone keyword on nodes) 2005-02-09 11:46:43 +00:00
Rob Richards
dd2f5ed142 Fixed bug #28817 (Var problem when extending domDocument). 2005-01-20 11:47:05 +00:00
Rob Richards
a3335dba69 revert fix for bug #28817 - fix is bad 2005-01-11 10:36:08 +00:00
Marcus Boerger
79687e9b7d - Fix dependency 2005-01-08 13:24:39 +00:00
Rob Richards
6bbb254ecc allow parser flags to be passed to xinclude() 2005-01-02 12:22:36 +00:00
Rob Richards
cb72e23c14 add optional parameter to pass libxml document load options 2004-12-05 12:02:35 +00:00
Rob Richards
28076f78ed add test 2004-12-04 11:40:10 +00:00
Rob Richards
25554b8118 Fixed bug #28817 (Var problem when extending domDocument). (Georg) 2004-12-04 11:39:34 +00:00
Antony Dovgal
ed5638bf77 fix tests 2004-12-02 16:33:36 +00:00
Rob Richards
b87d8cdfd0 prototype fixes (Jakub Vrána) 2004-11-18 19:54:30 +00:00
Rob Richards
7dced12c32 add DOMDocument xmlEncoding, xmlStandalone, xmlVersion (spec name changes)
add DOMText isElementContentWhitespace (spec name change)
 - old props/method kept for BC.
 - spec names changed when Level 3 went from Draft to Recommendation
nuke some unused code
2004-10-07 11:40:20 +00:00
Rob Richards
b0ffa2497b fix segfault in appendXML due to libxml bug 2004-10-07 10:00:39 +00:00
Rob Richards
5f630e1935 add evaluate() method to support all xpath expressions 2004-10-03 09:55:29 +00:00
Rob Richards
02fa5aa0dc remove cloning under ze1_compatibility_mode
- minor BC break but doesnt work right under compat mode anyways
2004-08-30 15:07:20 +00:00
Rob Richards
518145133f not experimental 2004-08-26 20:13:33 +00:00
Christian Stocker
b96ebb376f if $doc->recover = true; set error_reporting to (old | E_WARNING)
This way, you can't silence XML parse errors with the @ character
2004-08-25 08:27:07 +00:00
Christian Stocker
e99c375606 Added DomDocument->recover property for parsing not well-formed XML Documents. 2004-08-13 12:32:55 +00:00
Christian Stocker
786ffab310 fix test 2004-08-11 08:23:26 +00:00
Marcus Boerger
aae7a83df4 - Fixed Bug #29354 Exception constructor marked as both public and
protected
# If the constructor should be protected then it needs to be overwritten
# with a method that simply calls the parent, this function simply changes
# the visibility of the original function and makes that (public+protected)
2004-07-25 18:50:24 +00:00
Rob Richards
5c17925a7c add appendXML() to DOMFragment (chregu) 2004-07-18 13:47:44 +00:00
Rob Richards
8925d6573e MFB: add missing optional value param to createElementNS (chregu) 2004-07-18 13:16:15 +00:00
Wez Furlong
ed682e570a Implement extension load-order deps. 2004-07-18 12:03:51 +00:00
Rob Richards
7c7c353b1e Fixed bug #28771 (Segfault when using xslt and clone)
Add test case for bug #28721
2004-06-15 11:50:56 +00:00
Rob Richards
e73d498947 Fix bug #28721 (appendChild() and insertBefore() unset DOMText) 2004-06-13 10:12:47 +00:00
Rob Richards
5b0f34ae80 Fix bug #28584: DOMText::splitText() does not split text properly (benjcarson)
Prototype fixes
2004-05-31 12:50:28 +00:00
Zeev Suraski
7d04465b74 Fix prototypes 2004-05-31 12:27:49 +00:00
Zeev Suraski
e54165e406 No meaning for unsigned 2004-05-30 17:34:11 +00:00
Rob Richards
edae935c26 namespace/tagname validation fixes (Adam Trachtenberg)
added new test
2004-05-27 11:15:45 +00:00
Andrey Hristov
44de5a0e8e fixing the tests so to work with the new var_dump() (dumping private and
protected member variables)
2004-05-20 21:13:14 +00:00
Rob Richards
9e3956b313 constructors throw DOMException
add DOM_PHP_ERR DomException code
validate tagnames in constructors
use C style comments
update TODO
2004-05-16 10:30:16 +00:00
Ilia Alshanetsky
e81addb5ca C++ comments. 2004-04-29 12:59:26 +00:00
Rob Richards
7b1f927ef5 register_namespace changed to registerNamespace for consistency 2004-04-06 18:26:19 +00:00
Rob Richards
010c340f29 use new style constructors
fix return for nodelist item
2004-03-31 17:18:59 +00:00
Marcus Boerger
904dac52e2 DOM_RET_OBJ for return_value needs to be followed by return 2004-03-29 21:05:16 +00:00
Marcus Boerger
585af2418b Remove debug code 2004-03-29 20:54:46 +00:00
Marcus Boerger
4dc6fe7f62 Fix tests 2004-03-29 20:54:13 +00:00
Ilia Alshanetsky
0d0fffe98b Fixed compiler warnings. 2004-03-29 19:57:51 +00:00
Marcus Boerger
43d3d8a0a4 Fix class names 2004-03-29 19:31:29 +00:00
Stanislav Malyshev
5b0f6b1f34 Update for new read_property API 2004-03-21 18:28:38 +00:00
Marcus Boerger
979ef59b7c Rename hasMore() to valid() as discussed. (Part IV) 2004-03-08 21:15:39 +00:00
Rob Richards
4ce377064a Fix bug #27467: domDocument::load() called from class method crashes
the methods can be called statically only from within classes which
  are not extending DomDocument
2004-03-03 20:59:02 +00:00
Rob Richards
76ee5707f7 Fix bug #27436 dom_import_simplexml innaccurate
extensions register callbacks to export nodes
prevents segfault passing invalid objects to import functions
2004-03-01 12:09:24 +00:00
Rob Richards
081e773f86 add optional third parameter to support namespace in constructor 2004-02-22 13:05:49 +00:00
Rob Richards
7deeb0f96a always return domnodelist unless error 2004-02-18 22:42:30 +00:00
Rob Richards
4051591cfe correct implementation of prefix write property 2004-02-18 20:37:30 +00:00
Rob Richards
43eb077107 add dtor to cleanup iterator related data 2004-02-17 19:57:48 +00:00
Rob Richards
ec2ea131fb implement clone functionality to fix segfault
DomNode->clone() creates new doc proxy if document is cloned
remove printf from xpath
fix remaining invalid object state issues
2004-02-17 11:13:47 +00:00
Rob Richards
602c786aa9 issue warning if object is in invalid state when dealing with properties 2004-02-16 13:06:33 +00:00
Rob Richards
2a32e4328a switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
fix a few segfaults found while testing
2004-02-15 18:57:10 +00:00
Rob Richards
c3a57206cc allow certain methods to be called statically again:
domdocument (all load methods)
   domimplementation (all methods)
switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
fix a few segfaults found while testing
2004-02-15 17:07:34 +00:00
Rob Richards
c1418894dd switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
2004-02-15 14:05:17 +00:00
Rob Richards
a2e1844de9 start of dom update
switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
2004-02-15 10:54:37 +00:00
Zeev Suraski
30171a7590 zend_default_classes.h -> zend_exceptions.h 2004-02-12 10:43:27 +00:00
Ilia Alshanetsky
91f46b7880 Fixed compile warnings. 2004-02-04 14:15:16 +00:00
Zeev Suraski
8424be849f - Update with new destructor code 2004-02-04 11:14:47 +00:00
Rob Richards
b5e7a6dae0 update test 2004-01-22 22:12:21 +00:00
Rob Richards
7e619b7f5f update constructors so they cant be called statically 2004-01-22 21:16:05 +00:00
Rob Richards
a4815f7c8e Warn when empty string supplied to load methods (by Pierre-Alain)
Fix refcount on xpath iterators
xpath_query should return nodelist even when empty
2004-01-20 11:35:32 +00:00
Marcus Boerger
920358a0cc Fix warning (and possible problem) 2004-01-20 07:27:47 +00:00
Christian Stocker
6b70f9d1b3 Fix leaks in dom_xpath_query (create retval only if requiered) by Pierre-Alain 2004-01-19 21:08:29 +00:00
Christian Stocker
00af01bb94 fixes segfault, if file doesn't exist (by Pierre-Alain) 2004-01-19 20:54:40 +00:00
Christian Stocker
743a830102 - fix for bug #26947 Crash by using DomDocument::getElementById() 2004-01-18 12:56:23 +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
Rob Richards
38f8ed0e0a fix getElementsByTagName and getElementsByTagNameNS - allow * 2004-01-13 14:13:21 +00:00
Rob Richards
394bf2ba5b XPath query returns nodelist object rather than array 2004-01-10 11:50:25 +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
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Rob Richards
6e65e1d821 Fix bug #26815 (foreach (DOM) childnodes causes error using Xinclude)
update xinclude test
2004-01-07 15:33:25 +00:00
Rob Richards
66c68da22b Fixed bug #26743 (getElementsByTagName doesn't work properly) 2003-12-29 16:44:47 +00:00
Rob Richards
c7e945888b fix libxml mem leak 2003-12-27 12:39:10 +00:00
Rob Richards
84b90f639d Fixed bug #26723 (domNode::appendChild() changes child node namespace)
apply fix to insertBefore and replaceChild
2003-12-27 10:29:52 +00:00
Ilia Alshanetsky
39df1011f1 Compiler warning fixes. 2003-12-23 17:08:44 +00:00
Wez Furlong
3b450ec431 Add dependencies for these extensions 2003-12-22 13:16:43 +00:00
Ilia Alshanetsky
72da689340 Compiler warning fixes. 2003-12-21 18:22:14 +00:00
Rob Richards
d1b8a0f2a9 no longer need to cleanup temp var 2003-12-17 18:59:05 +00:00
Ilia Alshanetsky
bf36e351ba Removed duplicate php_libxml_(init|shutdown) they are already done by
ext/libxml.
2003-12-16 17:14:06 +00:00
Rob Richards
6dfd1c190c use error handling from libxml ext 2003-12-12 13:54:52 +00:00
Dmitry Stogov
70c9d3332a Dir seaparator "\" was removed. 2003-12-11 13:36:42 +00:00
Rob Richards
4756b5e05f fix possible mem leak when element has children 2003-12-09 21:56:42 +00:00
Wez Furlong
a35a82ddcd allow assignment to $node->nodeValue to work for more
objects and in situations where the rvalue is not a string.
(Fixes a segfault in that case)
2003-12-09 20:19:44 +00:00
Rob Richards
3084e72ef1 fix getElementsByTagname iteration 2003-12-08 17:08:10 +00:00
Rob Richards
c821c5b189 export libxml2 and iconv symbols
extensions no longer link against either of those
2003-12-08 12:56:47 +00:00
foobar
2e8b1c01fe revert, not needed 2003-12-07 15:41:50 +00:00
Marcus Boerger
9c8678eb7b Fix enabling shared builds. 2003-12-07 00:21:47 +00:00
Wez Furlong
08218f5082 Tweak xml related build.
Still some warnings for ext/xsl, but I'll leave that to someone else for now.
2003-12-05 21:16:47 +00:00
Christian Stocker
a016546e4c fix test 2003-12-05 14:52:51 +00:00
Rob Richards
198c09f775 fix notations - forgot to create iterator 2003-12-03 21:27:01 +00:00
Wez Furlong
05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
Rob Richards
6fa6d3c470 check node type for ->attributes and ->childNodes 2003-12-02 15:17:02 +00:00
Christian Stocker
80d552496c Fix Bug, if parser input is not a filename (By Adam) 2003-12-01 08:18:35 +00:00
Rob Richards
2a5092c03a remove call to xmlMemoryDump 2003-11-30 12:30:29 +00:00
Christian Stocker
fbc8f35778 fixed typos 2003-11-30 11:13:00 +00:00
Christian Stocker
8b315dddd4 output of uncaught exception changed 2003-11-30 10:58:18 +00:00
Rob Richards
8293923841 guess this file should be added too :) 2003-11-29 20:41:41 +00:00
Rob Richards
6ac34646ac implement namednodemap and nodelist
fix xsl/dom integration under windows
update tests and examples
2003-11-29 20:40:18 +00:00
Christian Stocker
2ff82ae2ed move some definitions to xml_common.h 2003-11-29 13:00:54 +00:00
Christian Stocker
29a46b2ff6 changing dom_object_get_data to php_dom_object_get_data and PHP_DOM_EXPORT it
(by Rob Richards)
2003-11-28 21:55:59 +00:00
foobar
32b5a41941 - Fixed bug #26072 (--disable-libxml does not work). 2003-11-12 23:42:38 +00:00
Moriyoshi Koizumi
06d541a63a SKIP tests if compress.zlib wrapper is not available. 2003-10-31 16:12:27 +00:00
Christian Stocker
038a7c4831 make test work with libxml2 2.6.x and lower
(I used lowercase html again in the EXPECT part, as this is now the default
behaviour for newer libxml2 releases)
2003-10-30 10:06:00 +00:00
Ilia Alshanetsky
e0a943dcdb Fixed test. 2003-10-29 05:04:40 +00:00
Shane Caraveo
4e283ed686 fix win32 build 2003-10-28 04:21:29 +00:00
Christian Stocker
9e5bc9509e use php_error_docref 2003-10-27 19:52:50 +00:00
Christian Stocker
901153b441 extending of domDocument class test 2003-10-27 17:51:55 +00:00
Christian Stocker
e735e44f52 added html test 2003-10-27 17:36:44 +00:00
Christian Stocker
0d59b3dda6 xinclude test 2003-10-27 15:32:44 +00:00
Christian Stocker
3cd8d4a865 xinclude support readded to ext/dom 2003-10-27 15:32:22 +00:00
Christian Stocker
df7799762a streams test 2003-10-27 15:13:12 +00:00
Christian Stocker
e311179b72 exception/try/catch test 2003-10-27 12:52:37 +00:00
Christian Stocker
a8063d776c interop test 2003-10-27 11:24:30 +00:00
Christian Stocker
eb2104d17c remove unneeded variables 2003-10-27 00:03:28 +00:00
Christian Stocker
e5bd8fdd0d - Make distinction in error-reporting between Warnings and Errors from libxml2
- Use internal error_handlers during html-parsing as well
2003-10-27 00:01:39 +00:00
Rob Richards
207dc90924 add interop with simplexml - dom_import_simplexml
fix cloneNode with elements
2003-10-26 15:57:02 +00:00
Moriyoshi Koizumi
48fbe0af2a Add a test case for getElementsByTagName() / getElementsByTagNameNS() 2003-10-21 02:43:24 +00:00
Rob Richards
44164170f3 implement namespace nodes
fix getElementsByTagName
fixes to attribute namespaces
remove safemode stuff as its handled in streams
2003-10-20 15:50:34 +00:00
Shane Caraveo
052f9378b2 add global init/shutdown functions for libxml. this is required as
shutdown is not safe to call multiple times, and to make streams work
correctly some init stuff has to happen in a specific order
2003-10-19 23:17:56 +00:00
Shane Caraveo
31b7b3a2b2 add the valid xml test 2003-10-09 05:47:38 +00:00
Shane Caraveo
d0cf1ec40d add a DTD example 2003-10-09 05:46:03 +00:00
Rob Richards
6c9bbe70bf some namespace fixes
fix compiler warning
2003-10-06 21:28:01 +00:00
Shane Caraveo
e12aafca6b fix crash building nodeName 2003-10-05 21:53:08 +00:00
Shane Caraveo
4fbf5a0733 fix crash accessing tagName without namespace 2003-10-05 21:49:47 +00:00
Shane Caraveo
87bd7d57c6 Add schema and relaxNG validation support
domdocument->schemaValidate(string filename)
domdocument->schemaValidateSource(string xml)
domdocument->relaxNGValidate(string filename)
domdocument->relaxNGValidateSource(string xml)

also fix domelement->setAttributeNS
2003-10-05 20:45:27 +00:00
Shane Caraveo
a05dbd3a28 remove a debug printf 2003-10-05 16:37:50 +00:00
Rob Richards
8f489130bf fix segfault if xpath expression string is invalid 2003-10-05 13:14:21 +00:00
Rob Richards
c21e78ddf2 implement isDefaultNameSpace and baseURI
nodeName and tagName return qualified names
fix removeAttributeNode - takes domAttr as parameter
better uri and file handling for document load method
fix possible segfault when document is freed
set get_property_ptr_ptr handler to NULL
2003-10-05 11:52:22 +00:00
Zeev Suraski
c6c240a455 Sync with new API 2003-10-05 08:08:49 +00:00
Ilia Alshanetsky
763b39cc1d Fixed compile warnings. 2003-10-03 01:07:35 +00:00
Rob Richards
b437ac77bc add property_get_ptr handler
fix possible segfault in xpath
add wide character support for characterdata
2003-09-29 11:43:26 +00:00
Rob Richards
f9640d5fad fix preserveWhiteSpace on document load 2003-09-24 12:56:37 +00:00
Rob Richards
cb4db32030 set consistent pathing for libxml
set document url when loaded from memory to set base href
2003-09-22 19:11:35 +00:00
Rob Richards
7c33d55961 validate encoding against valid handlers 2003-09-15 12:29:52 +00:00
Rob Richards
315bf401ba move some document properties internally
add xpath namespace support (by Shane)
2003-09-08 18:28:35 +00:00
Sebastian Bergmann
afdecc374d ZTS fix. 2003-09-03 18:13:11 +00:00
Rob Richards
fd5758781c changes to php_dom.h for last commit
replaced removed closing tags - doh
2003-09-03 10:48:02 +00:00
Rob Richards
5630dd0be2 add document HTML load/save methods
add document standalone validate method
cleanup some prototype declarations
domexception inherits from default exception
2003-09-03 10:11:53 +00:00
Rob Richards
b196c0551e implement stricterrorcheck
fix clonenode
cleanup error routines
forgot these files
2003-08-24 10:24:22 +00:00
Rob Richards
09481c642b implement stricterrorcheck
fix clonenode
cleanup error routines
2003-08-24 10:23:43 +00:00
Wez Furlong
21329c5e0c allow building without libxml2 under win32 2003-08-22 15:04:29 +00:00
Rob Richards
d7e6bdaa0f fix infinite loop in normalize 2003-08-20 18:58:03 +00:00