| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Instead of following the NULL pointer, we return an empty string.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|\
| |
| |
| |
| | |
* PHP-7.1:
Fix test compat with libxml2 2.9.5
|
| |
| |
| |
| | |
From 2.9.5 on libxml explcitly initializes the keepBlanks flag.
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
xmlNodeSetContentLen() calls xmlFreeNode() on node->children. This
causes problems if there are other references around to those children.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.1:
Fixed bug #74416 Wrong reflection on DOMNode::cloneNode
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Fix for DOMDocument loadHTML and loadHTMLFile ignore LIBXML_NOWARNING
and LIBXML_NOERROR flags.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
This reverts commit 6988d070ea8c7d44452d8c98e594d65ea722a1d8, reversing
changes made to 75ad2b301a047209e7b5a6b5912eb589cfbc773d.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.1:
Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTML
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
* 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)"
|
| |
| |
| |
| | |
This reverts commit 2fcf1259c6a9c1d70bcdfb96aeabc54c47e2a4a0.
|
| |
| |
| |
| | |
This reverts commit 62938bf08806129b42b17e74d79a450c30d4ff30.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.1:
fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.1:
fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
* PHP-7.1:
Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes)
Added (failing) testcase for bug #54382
|
| | |
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
| |
| |
| | |
* PHP-7.1:
PR #2211 don't supress warnings in tests
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| | |
* PHP-7.1:
news entry for PR #2267
Fixed #67474 (getElementsByTagNameNS and default namespace)
Add (failing) testcase for bug #67474
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
seems to be some messed up line endings"
This reverts commit aeeaedeeb7bdf7df3f0885a62e8d317762e88bf8.
This seems to make Travis unhappy (shocker), so revert for now until we find a better fix
|
|/
|
|
| |
be some messed up line endings
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| | |
This reverts commit 25a52d98d7cb2d4f3b3636eac45c71a1ae03c760.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
* PHP-5.6:
Fix #70001: Assigning to DOMNode::textContent does additional entity encoding
Resolved conflicts:
ext/dom/node.c
|
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| | |
* PHP-5.6:
test fails with old libxml2; skip in this case
|