summaryrefslogtreecommitdiff
path: root/ext/dom
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in recent bugfixChristoph M. Becker2020-02-141-1/+1
|
* Fix #77569: Write Acess Violation in DomImplementationChristoph M. Becker2020-02-132-1/+15
| | | | We must not assume that the zval IS_STRING.
* Fix test cases for libxml2 2.9.10Christoph M. Becker2019-10-312-4/+4
| | | | | Since the error reporting has been slightly changed, we have to adapt the two affected test cases.
* Fix #78025: segfault when accessing properties of DOMDocumentTypeChristoph M. Becker2019-05-172-1/+19
| | | | Instead of following the NULL pointer, we return an empty string.
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1568-77/+39
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in *.phptPeter Kokot2018-10-1448-75/+75
|
* Sync leading and final newlines in source code filesPeter Kokot2018-10-1410-10/+7
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in source code filesPeter Kokot2018-10-139-12/+12
|
* Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-07-091-1/+5
|\ | | | | | | | | * PHP-7.1: Sync callback signature with libxml2 2.9.8
| * Sync callback signature with libxml2 2.9.8Anatol Belski2018-07-091-1/+5
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-02-171-1/+0
|\ \ | |/ | | | | | | * PHP-7.1: Remove duplicated assignment
| * Remove duplicated assignmentAnatol Belski2018-02-171-1/+0
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Joe2018-02-081-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fixes bug #75871 Use pkg-config for libxml2 if available
| * Fixes bug #75871 Use pkg-config for libxml2 if availablePedro Magalhães2018-02-081-1/+1
| |
| * year++Xinchen Hui2018-01-0237-37/+37
| |
* | year++Xinchen Hui2018-01-0237-37/+37
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-09-111-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fix test compat with libxml2 2.9.5
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-09-111-1/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Fix test compat with libxml2 2.9.5
| | * Fix test compat with libxml2 2.9.5Anatol Belski2017-09-111-1/+1
| | | | | | | | | | | | From 2.9.5 on libxml explcitly initializes the keepBlanks flag.
* | | Req #74963 (Improved error message on fetching property of non-object)Xinchen Hui2017-07-311-2/+2
| | |
* | | Implement Countable for DomNodeList and DOMNamedNodeMap (Request #74837)Andreas Treichel2017-07-106-2/+109
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-06-032-0/+25
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-06-032-0/+25
| |\ \ | | |/
| | * Fixed bug #69373Tim Toohey2017-06-032-0/+25
| | | | | | | | | | | | | | | xmlNodeSetContentLen() calls xmlFreeNode() on node->children. This causes problems if there are other references around to those children.
* | | Merge branch 'PHP-7.1'Remi Collet2017-04-132-1/+22
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed bug #74416 Wrong reflection on DOMNode::cloneNode
| * | Merge branch 'PHP-7.0' into PHP-7.1Remi Collet2017-04-132-1/+22
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed bug #74416 Wrong reflection on DOMNode::cloneNode
| | * Fixed bug #74416 Wrong reflection on DOMNode::cloneNodeFabien Villepinte2017-04-132-1/+22
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-03-022-4/+18
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-03-022-4/+18
| |\ \ | | |/
| | * PHP bug #74004somedaysummer2017-03-022-4/+18
| | | | | | | | | | | | | | | Fix for DOMDocument loadHTML and loadHTMLFile ignore LIBXML_NOWARNING and LIBXML_NOERROR flags.
* | | Deprecate assert() with string argumentNikita Popov2017-02-0314-26/+26
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-02-032-19/+4
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-032-19/+4
| |\ \ | | |/
| | * 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.
* | | Merge branch 'PHP-7.1'Joe Watkins2017-02-032-4/+19
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTML
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-02-032-4/+19
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTML
| | * Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTMLsomedaysummer2017-02-032-4/+19
| | |
* | | Merge branch 'PHP-7.1'Anatol Belski2017-02-013-70/+29
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | * PHP-7.1: remove the reverted NEWS entry sync NEWS with the reverted stuff Revert "fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)" Revert "fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)"
| * | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-02-013-70/+29
| |\ \ | | |/ | | | | | | | | | | | | | | | * PHP-7.0: sync NEWS with the reverted stuff Revert "fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)" Revert "fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)"
| | * 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.
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-302-0/+36
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-302-0/+36
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)
| | * fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)jhdxr2017-01-302-0/+36
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-282-29/+34
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-282-29/+34
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)
| | * fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)jhdxr2017-01-282-29/+34
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-252-4/+55
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes) Added (failing) testcase for bug #54382
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-252-4/+55
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.0: Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes) Added (failing) testcase for bug #54382
| | * 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.