Commit Graph

371 Commits

Author SHA1 Message Date
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Rob Richards
b73a36a64f Fix bug #43364 (recursive xincludes don't remove internal nodes properly) 2007-11-28 10:43:02 +00:00
Dmitry Stogov
0ab5a2c203 Fixed tests 2007-11-19 08:21:58 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Rob Richards
e10e348c5d fix bug #42462 (Segmentation when trying to set an attribute in DOMElement) 2007-08-30 16:31:57 +00:00
Rob Richards
ebd85732fa fix bug #42082 (NodeList length zero should be empty). (Hannes)
add and update tests
2007-08-06 16:21:45 +00:00
Dmitry Stogov
be7c087da5 Fixed test 2007-07-10 07:29:06 +00:00
foobar
f0f44a3652 - Fix some configure --help texts 2007-07-03 17:24:39 +00:00
Dmitry Stogov
85279a4dce Allowed loading XML from unicode strings 2007-06-29 13:58:34 +00:00
Rob Richards
fd3cba3f73 MFB: free wholetext properly 2007-05-14 11:54:58 +00:00
Rob Richards
f573fd1077 Fixed bug #41374 (wholetext concats values of wrong nodes).
add test
2007-05-14 11:44:50 +00:00
Antony Dovgal
ccd97f3a21 fix test names 2007-05-07 17:23:53 +00:00
Rob Richards
45d4f66b24 MFB: 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:32:19 +00:00
Johannes Schlüter
a6d6396483 - Fix test 2007-05-01 08:35:57 +00:00
Rob Richards
ab5d9f9342 MFB: allow registered classes to be changed 2007-04-03 11:58:24 +00:00
Rob Richards
339785c431 fix bug #40836 (Segfault in ext/dom)
add test
2007-03-18 21:29:20 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Rob Richards
867b39d111 MFB: fix issues identitified by coverity 2006-12-21 12:52:12 +00:00
Rob Richards
c27c9666d3 add ability to call PHP functions from XPath
update test
2006-12-14 16:24:00 +00:00
Rob Richards
45364aea04 mark more functions unicode safe
add test
2006-12-08 16:49:25 +00:00
Rob Richards
95accd75bb mark more functions unicode safe
add tests
2006-12-08 16:28:33 +00:00
Dmitry Stogov
57d22421db Unicode support.
Now the real UG(unicode) value is available during MINIT calls.
2006-11-17 10:48:53 +00:00
Antony Dovgal
d3c4b8ca80 add a note that libxml2 2.6.2x is required 2006-11-13 12:53:50 +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
Ilia Alshanetsky
36883fc891 MFB: Added missing safety checks (Problem identified by Coverity scan) 2006-10-07 19:59:29 +00:00
Ilia Alshanetsky
4ad5333dd5 MFB: Added missing safety checks (Problem identified by Coverity scan) 2006-10-07 19:41:10 +00:00
Rob Richards
19523f9a39 mark functions unicode compliant
add test
2006-10-05 11:59:43 +00:00
Rob Richards
d58a374aa9 fix some compiler warnings 2006-09-28 10:11:20 +00:00
Rob Richards
a4b2e946f6 MFB: fix bug #38949 (Cannot get xmlns value attribute)
add test
2006-09-27 10:32:11 +00:00
Rob Richards
b2a44a9cc6 mark functionality unicode safe
add test
2006-09-22 10:13:27 +00:00
Rob Richards
1acc8abe56 fix domcomment property handler so it inherits from domcharacterdata
mark tested functions as unicode safe
add tests
2006-09-21 11:53:58 +00:00
Dmitry Stogov
128548a5c0 Disabled autoconversion of hash keys (from string to unicode) for PHP arrays 2006-09-19 10:38:31 +00:00
Ilia Alshanetsky
1d611c862c MFB: One last expand_filepath() check 2006-09-16 19:08:59 +00:00
Rob Richards
49d8ec82fe MFB: implement workaround for bug #38823 (DOMComment->appendData does nothing)
fix bug #38850 (lookupNamespaceURI doesn't return default namespace)
add test
2006-09-16 13:56:25 +00:00
Antony Dovgal
4bbeaa70fa free node pointer using correct function
fixes leak in ext/dom/tests/dom_create_element.phpt
2006-09-15 07:43:59 +00:00
Rob Richards
ed55b21a1b MFB: fix bug #38813 (DOMEntityReference->__construct crashes when called explicitly) 2006-09-14 13:35:49 +00:00
Rob Richards
a0d6c14a0f MFB: fix #38474 (getAttribute select attribute by order, even when prefixed)
add test
2006-08-28 23:37:23 +00:00
Rob Richards
0ee28a454c implement output formatting for saveHTML with libxml 2.6.23+ 2006-08-28 19:31:51 +00:00
Rob Richards
e1fa06393d MFB: fix underlying issue for bug #38438 2006-08-14 11:29:49 +00:00
Ilia Alshanetsky
a41723d0f4 MFB: Fixed bug #38438 (DOMNodeList->item(0) segfault on empty NodeList) 2006-08-13 15:03:19 +00:00
Antony Dovgal
dbe2092313 implement zend_unicode_to_string() and zend_string_to_unicode()
part #2 (of 2)
2006-08-08 16:59:11 +00:00
Antony Dovgal
f1a098cbdc fix types, add missing parentheses 2006-08-07 20:22:33 +00:00
Rob Richards
2008a88704 update tests
use binary strings for loadXML() method
2006-08-05 12:35:35 +00:00
Rob Richards
4c98426979 unicode changes 2006-08-05 12:33:34 +00:00
Rob Richards
f85e695409 add unicode support
update test
2006-08-04 18:11:27 +00:00
Christian Stocker
1f4cce3e0f MFB
improved code (after suggestion by helly)
2006-07-16 16:04:35 +00:00
Christian Stocker
812887cedb Added DOMNode::getNodePath() for getting an XPath for a node.
(MFB)
2006-07-16 15:05:32 +00:00
Hannes Magnusson
e18bb1ce3d Fix/add SKIPIF 2006-06-27 00:09:23 +00:00
Hannes Magnusson
d9f977e685 Add missing header include 2006-06-20 18:00:11 +00:00
Antony Dovgal
8fd8789c9a nuke unused variables and init variables when needed 2006-06-20 13:21:10 +00:00
Ilia Alshanetsky
b37a784265 MFB: Removed unused variables. 2006-06-13 20:20:03 +00:00
Antony Dovgal
0816690760 fix error messages in Unicode mode 2006-06-02 21:55:26 +00:00
Rob Richards
653007cea0 idness not valid for attribute declarations 2006-06-02 16:15:58 +00:00
Rob Richards
d178e8d3e4 add C14N() and C14NFile() methods to perform XML canonicalization
add test
2006-05-26 18:22:06 +00:00
Rob Richards
e88f13a86d add test 2006-05-22 17:05:38 +00:00
Rob Richards
43dfe5ec59 add test 2006-05-17 16:32:35 +00:00
Rob Richards
85e8f351d5 Fix bug #37456 (DOMElement->setAttribute() loops forever) 2006-05-17 16:32:04 +00:00
Rob Richards
a91a72f800 add test 2006-05-03 08:41:33 +00:00
Rob Richards
b1f52e79aa Fix bug #37277 (cloning Dom Documents or Nodes does not work)
Proper fix for bug #36859
2006-05-03 08:40:52 +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
Antony Dovgal
ae7fbe8132 MF51: fix #36859 (DOMElement crashes when calling __construct when clone'ing) 2006-03-26 00:23:37 +00:00
Rob Richards
7fc0756e55 MFB51: Fixed bug #36756 (DOMDocument::removeChild corrupts node)
add test
2006-03-18 11:46:13 +00:00
Dmitry Stogov
7c0e534157 Dropped zend.ze1_compatibility_mode 2006-03-16 10:33:23 +00:00
Rob Richards
206e50fc60 update dom iterator get key function for engine iterator changes
fix crashes using notations and entity decls
add test
2006-03-03 20:13:12 +00:00
Michael Wallner
92f97ce76a - MF51: fix crash in DOMImplementation::createDocumentType("name:") 2006-02-24 10:24:43 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
332e557ac2 Fixed start inex in iterator 2006-02-20 10:29:35 +00:00
Dmitry Stogov
09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
Rob Richards
e1e5c3f3b2 modify get_iterator call for engine change 2006-02-07 11:48:37 +00:00
Rob Richards
b8ded17f81 fix possible crash in textContent 2006-01-25 17:33:24 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Antony Dovgal
9e23794cb8 MFB: fix typo 2005-12-18 21:17:42 +00:00
Marcus Boerger
5d60cbc498 - MFB Fix export 2005-12-17 15:44:44 +00:00
Antony Dovgal
67f9574b78 fix test
this linenumber may vary
2005-12-16 14:57:13 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
Rob Richards
8c8f92f45f add test 2005-11-23 03:10:45 +00:00
Rob Richards
406910e1e9 add registerNodeClass() method
- methods can now natively return user classes registered with document
2005-11-23 02:56:41 +00:00
Rob Richards
73e6869340 implement setIDAttributeXXX functionality 2005-11-23 02:52:56 +00:00
Rob Richards
8038df9ce2 Fixed bug #35342 (isset(DOMNodeList->length) returns false). 2005-11-23 00:55:34 +00:00
Dmitry Stogov
8bb39e7dba Allow recursive calls to __get/__set for different properties 2005-11-15 15:21:47 +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
Marcus Boerger
ff72c376c2 - MFB Fix tests expectations 2005-11-06 10:53:39 +00:00
Rasmus Lerdorf
f16fb8484d MFB - We don't need the simplexml requirement here anymore 2005-11-05 22:32:55 +00:00
Rob Richards
a953be4fff fix crash setting attr from foreign doc (throws exception)
add test
2005-10-27 23:49:38 +00:00
Ilia Alshanetsky
37015ffcfa MFB51: Fixed tests to work with ZTS builds 2005-10-20 19:22:55 +00:00
Dmitry Stogov
b45944a5b3 Fixed access to uninitialized value 2005-09-19 18:47:36 +00:00
Rob Richards
d1cf2c5ffe add save options parameter 2005-09-08 10:34:37 +00:00
Rob Richards
4509fb9d5d Fixed bug #34276 (setAttributeNS doesn't work with default namespace)
Add test
2005-08-28 16:22:03 +00:00
foobar
98ce7bf37b - Removed EOL from error message 2005-08-18 12:40:17 +00:00
Dmitry Stogov
3658f1fb7b Unicode support 2005-08-18 11:47:03 +00:00
Dmitry Stogov
d0944d74f4 Unicode support 2005-08-16 15:09:51 +00:00
Rob Richards
bbe63287e7 Fixed bug #34103 (line numbering not maintained in dom document) 2005-08-15 17:13:15 +00:00
Dmitry Stogov
0bdfac1169 Tests are fixed according to new var_dump()/pront_r() format (to pass in non-unicode mode) 2005-08-15 07:55:41 +00:00
Dmitry Stogov
96a24404ce Unicode support 2005-08-12 14:57:58 +00:00
Sebastian Bergmann
52b001cc05 ZTS fixes. 2005-08-12 14:08:28 +00:00
Dmitry Stogov
21c1109e0c Unicode support 2005-08-12 11:29:33 +00:00
Andrei Zmievski
264cec8be6 Unicode support. 2005-08-11 23:36:07 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00