summaryrefslogtreecommitdiff
path: root/ext/dom/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Fix another batch of indentation in testsMáté Kocsis2020-02-025-82/+82
| | | |
* | | | Fix #78880 Another roundMáté Kocsis2020-01-191-1/+1
| | | |
* | | | Fix #78880: Final spelling fixesMáté Kocsis2020-01-162-4/+4
| | | |
* | | | Fix #78880: Another bunch of spelling errorsMáté Kocsis2020-01-161-1/+1
| | | |
* | | | Convert ext/dom to use arginfo stub.Benjamin Eberlei2019-11-081-0/+16
| | | |
* | | | Clean DONE tags from testsFabien Villepinte2019-11-0711-23/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-10-312-4/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix test cases for libxml2 2.9.10
| * | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-10-312-4/+4
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: Fix test cases for libxml2 2.9.10
| | * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-10-312-4/+4
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.2: Fix test cases for libxml2 2.9.10
| | | * 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.
* | | | Merge branch 'PHP-7.4'Fabien Villepinte2019-10-266-40/+42
|\ \ \ \ | |/ / /
| * | | Replace EXPECTF by EXPECTFabien Villepinte2019-10-266-40/+42
| | | | | | | | | | | | | | | | | | | | | | | | In ext/dom all the tests with a EXPECTF section starting by "Fatal error: Uncaught" have been updated to use the faster EXPECT
* | | | Merge branch 'PHP-7.4'Fabien Villepinte2019-10-193-0/+29
|\ \ \ \ | |/ / /
| * | | Add tests for DOMEntityReferenceFabien Villepinte2019-10-193-0/+45
| | | |
* | | | Test an error case with DOMDocument::createEntityReferenceFabien Villepinte2019-10-151-0/+16
| | | |
* | | | ext/dom: Add global registerNodeNS flag on DOMXPath ctor and property.Benjamin Eberlei2019-10-051-0/+40
| | | |
* | | | Convert some notices to warningsNikita Popov2019-10-023-4/+4
| | | | | | | | | | | | | | | | Part of https://wiki.php.net/rfc/engine_warnings.
* | | | Remove most uses of the ERROR typeNikita Popov2019-09-301-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is now only used to signal exceptions for property reads. ERROR zvals are never returned back to the VM anymore, so there's no need to check for them when receiving a VAR. Also return MAY_BE_ERROR, as ERROR is now no longer relevant for inference.
* | | | Throw Error when writing property of non-objectNikita Popov2019-09-271-5/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes object auto-vivification support. This also means that we can remove the corresponding special handling for typed properites: We no longer need to check that a property is convertible to stdClass if such a conversion might take place indirectly due to a nested property write. Additionally OBJ_W style operations now no longer modify the object operand, and as such we no longer need to treat op1 as a def in SSA form. The next step would be to actually compile the whole LHS of OBJ_W operations in R rather than W mode, but that causes issues with SimpleXML, whose object handlers depend on the current compilation structure. Part of https://wiki.php.net/rfc/engine_warnings.
* | | Add missing SKIPIFFabien Villepinte2019-09-041-0/+2
| | |
* | | Allow exceptions in __toString()Nikita Popov2019-06-051-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-05-171-0/+18
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix #78025: segfault when accessing properties of DOMDocumentType
| * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-05-171-0/+18
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fix #78025: segfault when accessing properties of DOMDocumentType
| | * Fix #78025: segfault when accessing properties of DOMDocumentTypeChristoph M. Becker2019-05-171-0/+18
| | | | | | | | | | | | 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-146-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-134-5/+5
| | |
| * | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1568-76/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-146-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-134-5/+5
| | |
* | | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-1558-78/+78
| | |
* | | Remove tests for zpp failure conditionsNikita Popov2019-03-0512-220/+0
| | | | | | | | | | | | | | | These tests only check zpp error conditions, so drop them per zpp testing policy.
* | | Implement fine-grained conflict handlingNikita Popov2019-02-201-0/+0
| | | | | | | | | | | | | | | | | | Tests can specify conflict keys, either in --CONFLICTS-- or a per-directory CONFLICTS file. Non-conflicting tests may be run in parallel.
* | | run-tests.php: experimental parallel testing supportAndrea Faulds2019-02-181-0/+0
| | |
* | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1570-78/+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-1429-41/+41
| | |
* | | Trim trailing whitespace in testsGabriel Caruso2018-10-1430-46/+46
| | |
* | | Sync leading and final newlines in source code filesPeter Kokot2018-10-146-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-134-5/+5
| | |
* | | Rename *.php files in ext/dom tests to *.incPeter Kokot2018-09-2325-24/+24
| | | | | | | | | | | | | | | *.php files are ignored by Git and a better practice might be to rename PHP included files for tests.
* | | Bump minimum libxml version to 2.7.6Nikita Popov2018-09-232-2/+0
| | | | | | | | | | | | Released Oct 2009, part of RHEL 6.
* | | Fix permissionsPeter Kokot2018-09-213-0/+0
| | | | | | | | | | | | Certain files don't need to be executables.
* | | Merge branch 'PHP-7.3'Christoph M. Becker2018-08-281-1/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix SKIPIF conditions
| * | Fix SKIPIF conditionsChristoph M. Becker2018-08-281-1/+4
| | | | | | | | | | | | | | | The test calls `mb_convert_encoding()` and as such requires the mbstring extension.
* | | Merge branch 'PHP-7.3'Anatol Belski2018-08-171-0/+234
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Add test for bug #76738
| * | Add test for bug #76738Anatol Belski2018-08-171-0/+234
| | | | | | | | | | | | | | | Original repro. It's unwieldy, but it's otherwise hard to trigger the wrong buffer handling behavior.
| * | DOMDocument::formatOutput attribute sometimes ignoredAndrew Nester2018-08-171-0/+18
| | | | | | | | | | | | (cherry picked from commit ef9ed19ec7f141311feea1d42467f5773cfc09bc)
| * | Revert "DOMDocument::formatOutput attribute sometimes ignored"Christoph M. Becker2018-08-141-21/+0
|/ / | | | | | | | | | | This reverts commit ef9ed19ec7f141311feea1d42467f5773cfc09bc and its follow-up 36f05a80d7cf11fffb827c7f0b6c8e73d3846e8e, since these caused a serious regression (see bug #76738).