Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Merge branch 'pull-request/2344' into PHP-7.0" | Nikita Popov | 2017-02-03 | 2 | -19/+4 |
| | | | | | This reverts commit 6988d070ea8c7d44452d8c98e594d65ea722a1d8, reversing changes made to 75ad2b301a047209e7b5a6b5912eb589cfbc773d. | ||||
* | Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTML | somedaysummer | 2017-02-03 | 2 | -4/+19 |
| | |||||
* | Revert "fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)" | Anatol Belski | 2017-02-01 | 2 | -34/+29 |
| | | | | This reverts commit 2fcf1259c6a9c1d70bcdfb96aeabc54c47e2a4a0. | ||||
* | Revert "fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)" | Anatol Belski | 2017-02-01 | 2 | -36/+0 |
| | | | | This reverts commit 62938bf08806129b42b17e74d79a450c30d4ff30. | ||||
* | fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454) | jhdxr | 2017-01-30 | 2 | -0/+36 |
| | |||||
* | fixed bug #50989 (DOM support for LIBXML_NOXMLDECL) | jhdxr | 2017-01-28 | 2 | -29/+34 |
| | |||||
* | Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes) | Arnout Boks | 2017-01-25 | 1 | -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 #54382 | Arnout Boks | 2017-01-25 | 1 | -0/+27 |
| | |||||
* | Fixed #73907 (nextSibling property not included in var_dump of DOMNode) | Arnout Boks | 2017-01-10 | 4 | -4/+32 |
| | |||||
* | Fixed bug #61858 (DOMAttr debug info generates E_WARNING) | Arnout Boks | 2017-01-10 | 3 | -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 tests | Craig Duncan | 2017-01-07 | 1 | -3/+3 |
| | |||||
* | Update copyright headers to 2017 | Sammy Kaye Powers | 2017-01-04 | 37 | -37/+37 |
| | |||||
* | Fixed #67474 (getElementsByTagNameNS and default namespace) | Arnout Boks | 2017-01-02 | 1 | -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 #67474 | Arnout Boks | 2017-01-02 | 1 | -0/+18 |
| | |||||
* | Fix dom class can't be inherited by the internal class | dreamszhu | 2017-01-01 | 1 | -1/+1 |
| | |||||
* | Fix bug #73150: missing NULL check in dom_document_save_html | Stanislav Malyshev | 2016-10-12 | 1 | -2/+2 |
| | | | | (cherry picked from commit 1c0e9126fbfb7fde3173347b7464237f56c38bfa) | ||||
* | Merge branch 'PHP-5.6' into PHP-7.0 | Christoph M. Becker | 2016-07-15 | 1 | -0/+20 |
|\ | |||||
| * | Fix bug #66502: DOM document dangling reference | Christoph M. Becker | 2016-07-15 | 1 | -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.0 | Lior Kaplan | 2016-01-01 | 37 | -37/+37 |
|\ \ | |/ | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016) | ||||
| * | Happy new year (Update copyright to 2016) | Lior Kaplan | 2016-01-01 | 37 | -37/+37 |
| | | |||||
* | | These function docs are referencing zend_object_value but this should be ↵ | Tom Van Looy | 2015-12-24 | 1 | -1/+1 |
| | | | | | | | | zend_object | ||||
* | | Internal function argumensts cleanup (strict_types) | Xinchen Hui | 2015-12-12 | 1 | -2/+2 |
| | | |||||
* | | add ovfl check, fix warnings | Anatol Belski | 2015-09-24 | 1 | -3/+3 |
| | | |||||
* | | Cleanup: replace removed condition with ZEND_ASSERT() | Dmitry Stogov | 2015-09-24 | 1 | -1/+2 |
| | | |||||
* | | Fixed Bug #70558 ("Couldn't fetch" error in DOMDocument::registerNodeClass()) | Xinchen Hui | 2015-09-23 | 2 | -1/+20 |
| | | |||||
* | | add range check | Anatol Belski | 2015-09-16 | 1 | -0/+5 |
| | | |||||
* | | add overflow check | Anatol Belski | 2015-09-12 | 1 | -1/+6 |
| | | |||||
* | | fix data types | Anatol Belski | 2015-09-12 | 1 | -3/+3 |
| | | |||||
* | | add range checks | Anatol Belski | 2015-09-12 | 1 | -11/+11 |
| | | |||||
* | | Revert "Fix #70029: nodeValue of DOMElement list content of children nodes" | Christoph M. Becker | 2015-09-06 | 6 | -101/+95 |
| | | | | | | | | This reverts commit 25a52d98d7cb2d4f3b3636eac45c71a1ae03c760. | ||||
* | | Fix #70029: nodeValue of DOMElement list content of children nodes | Christoph M. Becker | 2015-09-05 | 6 | -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. Becker | 2015-09-05 | 2 | -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 encoding | Christoph M. Becker | 2015-09-05 | 2 | -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/dom | Anatol Belski | 2015-08-26 | 1 | -2/+19 |
| | | |||||
* | | Get rid of implicit type casting in GC_*() macros in Zend/zend_types.h. | Dmitry Stogov | 2015-08-13 | 1 | -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 Patsura | 2015-08-03 | 1 | -2/+2 |
| | | |||||
* | | remove TSRMLS_* | Anatol Belski | 2015-08-02 | 1 | -2/+2 |
| | | | | | | | | either remains or merged in from PHP5 | ||||
* | | Merge branch 'PHP-5.6' | Christoph M. Becker | 2015-07-31 | 1 | -1/+4 |
|\ \ | |/ | | | | | | | * PHP-5.6: test fails with old libxml2; skip in this case | ||||
| * | test fails with old libxml2; skip in this case | Christoph M. Becker | 2015-07-31 | 1 | -1/+4 |
| | | |||||
* | | Various warning fixes | Nikita Popov | 2015-07-17 | 1 | -1/+1 |
| | | |||||
* | | DOMDocument::saveXML has a 2nd optional arg | Rasmus Lerdorf | 2015-07-10 | 1 | -0/+1 |
| | | |||||
* | | Switch position of ce in exception ce variable names | Aaron Piotrowski | 2015-07-03 | 1 | -1/+1 |
| | | |||||
* | | Change zend_exception_get_default() to zend_exception_ce | Aaron Piotrowski | 2015-07-03 | 1 | -1/+1 |
| | | |||||
* | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵ | Dmitry Stogov | 2015-06-30 | 9 | -18/+18 |
| | | | | | | | | semantick changes). | ||||
* | | Merge branch 'PHP-5.6' | Christoph M. Becker | 2015-06-27 | 1 | -0/+12 |
|\ \ | |/ | | | | | | | * PHP-5.6: added regression test for bug #69679 | ||||
| * | added regression test for bug #69679 | Christoph M. Becker | 2015-06-27 | 1 | -0/+12 |
| | | | | | | | | DOMDocument::loadHTML refuses to accept NULL bytes. | ||||
* | | Fix more minor mistakes in the proto comments | Rasmus Lerdorf | 2015-06-23 | 7 | -39/+39 |
| | | |||||
* | | more precise way to destroy iterator object | Anatol Belski | 2015-06-19 | 1 | -1/+3 |
| | | | | | | | | which also fixes the iterator_to_array test | ||||
* | | added test for bug #69846 | Anatol Belski | 2015-06-19 | 1 | -0/+162 |
| | | |||||
* | | better approach to fix bug #69846 | Anatol Belski | 2015-06-19 | 2 | -4/+7 |
| | | | | | | | | don't destroy the current iterator object too early |