summaryrefslogtreecommitdiff
path: root/ext/dom/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix #70001: Assigning to DOMNode::textContent does additional entity encodingChristoph M. Becker2015-09-051-0/+17
| | | | | | 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.
* test fails with old libxml2; skip in this caseChristoph M. Becker2015-07-311-1/+4
|
* added regression test for bug #69679Christoph M. Becker2015-06-271-0/+12
| | | | DOMDocument::loadHTML refuses to accept NULL bytes.
* Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-06-091-2/+2
|\ | | | | | | | | | | * PHP-5.5: fix test update NEWS
| * Merge branch 'PHp-5.4' into PHP-5.5Stanislav Malyshev2015-06-091-2/+2
| |\ | | | | | | | | | | | | | | | * PHp-5.4: fix test update NEWS
| | * fix testStanislav Malyshev2015-06-091-2/+2
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-04-141-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: (27 commits) fix non-standard C update NEWS 5.4.41 next fix CVE num update NEWS Fix bug #69441 (Buffer Overflow when parsing tar/zip/phar in phar_set_inode) fix test fix type in fix for #69085 fix memory leak & add test Fix tests fix CVE num Fix bug #69337 (php_stream_url_wrap_http_ex() type-confusion vulnerability) Fix test Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) ... Conflicts: ext/standard/http_fopen_wrapper.c
| * | Merge branch 'PHP-5.4.40' into PHP-5.5.24Stanislav Malyshev2015-04-111-0/+5
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4.40: Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) Fixed bug #68901 (use after free) Fixed bug #68740 (NULL Pointer Dereference) Fix bug #66550 (SQLite prepared statement use-after-free) Better fix for #68601 for perf https://bitbucket.org/libgd/gd-libgd/commits/81e9a993f2893d651d225646378e3fd1b7465467 Fix bug #68601 buffer read overflow in gd_gif_in.c Revert "Merge branch 'PHP-5.4' of https://git.php.net/repository/php-src into PHP-5.4" Fixed bug #69293 Add ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against callable.
| | * Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions)Stanislav Malyshev2015-04-111-0/+5
| | |
* | | More fixes for nodelist array accessTjerk Meesters2014-10-121-3/+29
| | | | | | | | | | | | | | | | | | - testing for null property read - no zval copying if the type is already long - memory fix for master
* | | Refactored DOMNodeList array dereferencing implementationTjerk Meesters2014-10-091-6/+47
| | |
* | | DOMNodeList elements are accessible through array notationFlorian MARGAINE2014-09-271-0/+20
| | | | | | | | | | | | Fixes #67949
* | | Make DOMNode::textContent writeableTjerk Meesters2014-09-021-0/+29
|/ /
* | Merge branch 'PHP-5.4' into PHP-5.5Matteo Beccati2014-06-092-0/+5
|\ \ | |/ | | | | | | * PHP-5.4: Fixed DOM tests when using libxml2 versions patched against CVE-2014-0191
| * Fixed DOM tests when using libxml2 versions patched against CVE-2014-0191Matteo Beccati2014-06-092-0/+5
| | | | | | | | | | DOMDocument::substituteEntities needs to be set to true in order for external entities to be parsed.
* | Merge branch 'PHP-5.4' into PHP-5.5Anatol Belski2014-04-165-2/+63
|\ \ | |/ | | | | | | * PHP-5.4: Fixed bug #67081 DOMDocumentType->internalSubset returns entire DOCTYPE tag, not only the subset
| * Fixed bug #67081 DOMDocumentType->internalSubset returns entire DOCTYPE tag, ↵Anatol Belski2014-04-165-2/+63
| | | | | | | | not only the subset
* | Merge branch 'PHP-5.4' into PHP-5.5Michael Wallner2013-12-021-0/+26
|\ \ | |/ | | | | | | * PHP-5.4: Fix bug #65196
| * Fix bug #65196Michael Wallner2013-12-021-0/+26
| | | | | | | | | | | | Passing DOMDocumentFragment to DOMDocument::saveHTML() produces invalid markup, because a DocumentFragment is just a container for child nodes and not a real node itself.
* | Embeds the content of the DTD in the DOCTYPE declaration of the XML files.Antonio Diaz Ruiz2013-08-103-3/+24
| |
* | Adds 2 new xml files which include the dtd path relative to the base ↵Antonio Diaz Ruiz2013-08-105-4/+33
| | | | | | | | | | | | directory for the php source code. It fixs the fail on the load of the dtd in the tests modified by this commit.
* | Adds files: error 1 to 5 and variation 1 to 4Antonio Diaz Ruiz2013-08-1033-0/+628
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests for error1: not well formed xml tests for error2: not well formed xml attribute without colon tests for error2: not well formed xml, typo tests for error4: wrong xml version tests for error5: extra content at the end of the doc tests libxml_dtd_load tests libxml_dtd_valid tests for libdtd_noerror tests for LIBXML_DTDATTR, LIBXML_NOCDATA, LIBXML_NOENT and LIBXML_NOBLANKS the basic behavior fix comments
* | Merge branch 'pull-request/325' into PHP-5.5Stanislav Malyshev2013-08-108-2/+110
|\ \ | |/ |/| | | | | * pull-request/325: Add schema default/fixed value support
| * Add schema default/fixed value supportChris Wright2013-04-129-6/+114
| | | | | | | | | | Added support for adding fixed/default values during XSD validation and added/updated associated tests
* | non living code related typo fixesVeres Lajos2013-08-041-1/+1
| |
* | typo fixesVeres Lajos2013-07-151-4/+4
| |
* | Merge branch 'pull-request/341'Stanislav Malyshev2013-06-101-2/+2
| | | | | | | | | | * pull-request/341: (23 commits) typofixes
* | PHPTests for the DOMDocument::loadHTMLfile method.Antonio Diaz Ruiz2013-06-107-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | They cover - The basic behaviour - When the method receives as argument a file which doesn't exist - When the argument is an empty string - When an empty file is loaded - When a not-well formed html file is loaded It also includes 2 auxilary files - An empty html file - A not well formed html file
* | Includes 5 new phpTests to check that the error message DOM_NOT_FOUND is ↵Antonio Diaz Ruiz2013-04-216-1/+191
|/ | | | | | | | | | | | properly raised by the method DOMNode::insertBefore(newNode, [refNode]). Each file covers a different test case DOMNode_insertBefore_error2.phpt: refNode is a sibling of the node where newNode wanted to be inserted. DOMNode_insertBefore_error3.phpt: refNode is the parent of the node where newNode wanted to be inserted. DOMNode_insertBefore_error4.phpt: refNode is a brand new node. DOMNode_insertBefore_error5.phpt: refNode is a descendant (not child) of the node where newNode wanted to be inserted. DOMNode_insertBefore_error6.phpt: refNode is the node where newNode wanted to be inserted.
* Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-10-1015-0/+0
|\
| * Remove executable permission on phptXinchen Hui2012-10-1015-0/+0
| |
* | Merge branch 'PHP-5.3' into PHP-5.4zoe slattery2012-05-154-8/+8
|\ \ | | | | | | | | | | | | * PHP-5.3: Small fixes to tests, see #62022
| * | Small fixes to tests, see #62022zoe slattery2012-05-154-8/+8
| |/
* | Merge branch 'PHP-5.3' into PHP-5.4Christopher Jones2012-05-011-7/+19
|\ \ | |/ | | | | | | * PHP-5.3: Make output order for dom007.phpt platform independent
| * Make output order for dom007.phpt platform independentChristopher Jones2012-05-011-7/+19
| | | | | | | | | | | | | | This test has long been near the top of the reported output diffs. For example, on http://qa.php.net/reports/?version=5.4.0 it has diffed 1307 times out of 3543 reports, at time of this commit. (The second highest diff has occurred 710 times.)
* | Merge branch 'PHP-5.3' into PHP-5.4Anatoliy Belsky2012-04-303-1/+15
|\ \ | |/ | | | | | | * PHP-5.3: Fix bug 61868 ext\dom\tests\DOMDocument_validate_on_parse_variation.phpt fails
| * Fix bug 61868 ext\dom\tests\DOMDocument_validate_on_parse_variation.phpt failsAnatoliy Belsky2012-04-303-1/+15
| |
* | Merge branch '5.3' into 5.4Gustavo André dos Santos Lopes2012-03-2313-75/+118
|\ \ | |/
| * Fixed tests that var_dump/print_r DOM objects.Gustavo André dos Santos Lopes2012-03-2312-75/+59
| |
| * Improved on DOM object debug info handler. Added test.Gustavo André dos Santos Lopes2012-03-231-0/+59
| |
| * - fix test for OS where dir sep is \ Pierre Joye2011-09-071-2/+6
| |
| * Fixed failed test to take into account printed warnings like in 5.4 and ↵Shein Alexey2011-08-241-0/+6
| | | | | | | | trunk branches.
| * working on test coverage for ext/dom, here's 17 more testsKnut Urdalen2011-06-2817-0/+411
| |
| * Fixed dom tests.Shein Alexey2011-06-223-13/+6
| |
| * Fixed testIlia Alshanetsky2011-06-081-0/+4
| |
| * Fixed bug #54601 (Removing the doctype node segfaults)Hannes Magnusson2011-05-291-0/+30
| |
| * Fix test by pointing this at a smaller file that is less likely to break the ↵Rasmus Lerdorf2011-04-271-2/+2
| | | | | | | | test
| * Fix broken testRasmus Lerdorf2011-04-271-5/+2
| |
| * - Implemented FR #39771 (Made DOMDocument::saveHTML accept an optional Gustavo André dos Santos Lopes2011-01-181-7/+7
| | | | | | | | | | DOMNode like DOMDocument::saveXML).
| * Fixed bug #52656 (DOMCdataSection does not work with splitText).Ilia Alshanetsky2010-11-291-0/+14
| |