summaryrefslogtreecommitdiff
path: root/ext/dom
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge branch 'pull-request/2344' into PHP-7.0"Nikita Popov2017-02-032-19/+4
| | | | | This reverts commit 6988d070ea8c7d44452d8c98e594d65ea722a1d8, reversing changes made to 75ad2b301a047209e7b5a6b5912eb589cfbc773d.
* Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTMLsomedaysummer2017-02-032-4/+19
|
* Revert "fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)"Anatol Belski2017-02-012-34/+29
| | | | This reverts commit 2fcf1259c6a9c1d70bcdfb96aeabc54c47e2a4a0.
* Revert "fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)"Anatol Belski2017-02-012-36/+0
| | | | This reverts commit 62938bf08806129b42b17e74d79a450c30d4ff30.
* fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)jhdxr2017-01-302-0/+36
|
* fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)jhdxr2017-01-282-29/+34
|
* Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes)Arnout Boks2017-01-251-4/+28
| | | | | | | | | | | | | | The fix is based on the same strategy for handling namespace declarations as used by getAttributeNode. Note that this strategy makes these methods not return a DOMAttr for xmlns* attributes, but an instance of the (undocumented) class DOMNameSpaceNode. This is not really ideal, but at least this fix makes the behavior of getAttributeNode and getAttributeNodeNS consistent. A follow-up action would be to investigate whether DOMNameSpaceNode can be made into a subclass of DOMAttr (which may be hard due to the way libxml treats namespace declarations) or document this deviating return value for xmlns* attributes.
* Added (failing) testcase for bug #54382Arnout Boks2017-01-251-0/+27
|
* Fixed #73907 (nextSibling property not included in var_dump of DOMNode)Arnout Boks2017-01-104-4/+32
|
* Fixed bug #61858 (DOMAttr debug info generates E_WARNING)Arnout Boks2017-01-103-4/+26
| | | | | | | | | | It seems fair to remove this warning, given that: * it is not documented in the official documentation * the $specified property, which has a similar 'not implemented' status, also does not trigger a warning * it apparently hinders quite a lot of people during debugging, judging by the number of votes on the bug
* PR #2211 don't supress warnings in testsCraig Duncan2017-01-071-3/+3
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-0437-37/+37
|
* Fixed #67474 (getElementsByTagNameNS and default namespace)Arnout Boks2017-01-021-1/+1
| | | | | | | This bug was caused by the fact that dom_get_elements_by_tag_name_ns_raw uses an empty string to filter on the default namespace (as NULL means 'no filter'), whereas in the node itself the default namespace is signalled by nodep->ns being null.
* Add (failing) testcase for bug #67474Arnout Boks2017-01-021-0/+18
|
* Fix dom class can't be inherited by the internal classdreamszhu2017-01-011-1/+1
|
* Fix bug #73150: missing NULL check in dom_document_save_htmlStanislav Malyshev2016-10-121-2/+2
| | | | (cherry picked from commit 1c0e9126fbfb7fde3173347b7464237f56c38bfa)
* Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-07-151-0/+20
|\
| * Fix bug #66502: DOM document dangling referenceChristoph M. Becker2016-07-151-0/+20
| | | | | | | | | | | | | | | | | | When we decrement the refcount of a node's document, we state that we won't need it anymore. Therefore we can *always* set the pointer to the document to NULL, what avoids invalid memory accesses for some edge cases as demonstrated with the PHPT. Original patch provided by Sean Heelan.
* | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-0137-37/+37
|\ \ | |/ | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-0137-37/+37
| |
* | These function docs are referencing zend_object_value but this should be ↵Tom Van Looy2015-12-241-1/+1
| | | | | | | | zend_object
* | Internal function argumensts cleanup (strict_types)Xinchen Hui2015-12-121-2/+2
| |
* | add ovfl check, fix warningsAnatol Belski2015-09-241-3/+3
| |
* | Cleanup: replace removed condition with ZEND_ASSERT()Dmitry Stogov2015-09-241-1/+2
| |
* | Fixed Bug #70558 ("Couldn't fetch" error in DOMDocument::registerNodeClass())Xinchen Hui2015-09-232-1/+20
| |
* | add range checkAnatol Belski2015-09-161-0/+5
| |
* | add overflow checkAnatol Belski2015-09-121-1/+6
| |
* | fix data typesAnatol Belski2015-09-121-3/+3
| |
* | add range checksAnatol Belski2015-09-121-11/+11
| |
* | Revert "Fix #70029: nodeValue of DOMElement list content of children nodes"Christoph M. Becker2015-09-066-101/+95
| | | | | | | | This reverts commit 25a52d98d7cb2d4f3b3636eac45c71a1ae03c760.
* | Fix #70029: nodeValue of DOMElement list content of children nodesChristoph M. Becker2015-09-056-95/+101
| | | | | | | | | | | | | | According to the W3C DOM Core Level 3 specification DOMElement::nodeValue is supposed to yield null, but currently the DOM extension yield the result of calling xmlNodeGetContent(), what is the concatenation of the values of the children of the element. This patch fixes the non standard behavior.
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-09-052-4/+20
|\ \ | |/ | | | | | | | | | | | | * PHP-5.6: Fix #70001: Assigning to DOMNode::textContent does additional entity encoding Resolved conflicts: ext/dom/node.c
| * Fix #70001: Assigning to DOMNode::textContent does additional entity encodingChristoph M. Becker2015-09-052-4/+20
| | | | | | | | | | | | Assigning to DOMNode::textContent encodes entities, what does not match the behavior of DOMText::__construct() and DOMDocument::createTextNode. This patch changes the behavior of DOMNode::textContent in this regard.
* | add some range checks to ext/domAnatol Belski2015-08-261-2/+19
| |
* | Get rid of implicit type casting in GC_*() macros in Zend/zend_types.h.Dmitry Stogov2015-08-131-1/+1
| | | | | | | | | | | | This prevented compilation warnings and disclosed few incorrect usages in Zend/zend_vm_def.h and ext/dom/xpath.c. Now explicit type casting may be required on call site. This may break some C extension code, but it shoulfn't be a problem to add explicit casting.
* | Remove unneded space(s)Dmitry Patsura2015-08-031-2/+2
| |
* | remove TSRMLS_*Anatol Belski2015-08-021-2/+2
| | | | | | | | either remains or merged in from PHP5
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-07-311-1/+4
|\ \ | |/ | | | | | | * PHP-5.6: test fails with old libxml2; skip in this case
| * test fails with old libxml2; skip in this caseChristoph M. Becker2015-07-311-1/+4
| |
* | Various warning fixesNikita Popov2015-07-171-1/+1
| |
* | DOMDocument::saveXML has a 2nd optional argRasmus Lerdorf2015-07-101-0/+1
| |
* | Switch position of ce in exception ce variable namesAaron Piotrowski2015-07-031-1/+1
| |
* | Change zend_exception_get_default() to zend_exception_ceAaron Piotrowski2015-07-031-1/+1
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-309-18/+18
| | | | | | | | semantick changes).
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-06-271-0/+12
|\ \ | |/ | | | | | | * PHP-5.6: added regression test for bug #69679
| * added regression test for bug #69679Christoph M. Becker2015-06-271-0/+12
| | | | | | | | DOMDocument::loadHTML refuses to accept NULL bytes.
* | Fix more minor mistakes in the proto commentsRasmus Lerdorf2015-06-237-39/+39
| |
* | more precise way to destroy iterator objectAnatol Belski2015-06-191-1/+3
| | | | | | | | which also fixes the iterator_to_array test
* | added test for bug #69846Anatol Belski2015-06-191-0/+162
| |
* | better approach to fix bug #69846Anatol Belski2015-06-192-4/+7
| | | | | | | | don't destroy the current iterator object too early