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