summaryrefslogtreecommitdiff
path: root/ext/dom
Commit message (Collapse)AuthorAgeFilesLines
* Fix number of required arguments in arginfoNikita Popov2019-10-072-3/+3
| | | | | | | | | | | * pack() only requires one argument * stream_context_set_option() only requires two arguments * ReflectionMethod::getClosure() accepts no args for static methods * DOMDocument::createProcessingInstruction() only requires one arg * DOMImplementation::createDocument() only requires two arguments * DOMDocument::importNode() only requires one arg * mysql_get_client_version() doesn't accept any args, despite what the docs say...
* Add missing SKIPIFFabien Villepinte2019-09-041-0/+2
|
* Cheaper checks for exceptions thrown from __toString()Dmitry Stogov2019-06-065-18/+18
|
* Allow exceptions in __toString()Nikita Popov2019-06-056-13/+98
| | | | | | | | | | 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.
* Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macrosDmitry Stogov2019-05-281-1/+2
|
* Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-05-172-1/+19
|\ | | | | | | | | * PHP-7.3: Fix #78025: segfault when accessing properties of DOMDocumentType
| * Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-05-172-1/+19
| |\ | | | | | | | | | | | | * PHP-7.2: Fix #78025: segfault when accessing properties of DOMDocumentType
| | * 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
| | |
| * | 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
| | |
* | | Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Normalization include: - Use dnl for everything that can be ommitted when configure is built in favor of the shell comment character # which is visible in the output. - Line length normalized to 80 columns - Dots for most of the one line sentences - Macro definitions include similar pattern header comments now
* | | Rename --enable-libxml to --with-libxml to meet naming guidelinesHugh McMaster2019-04-181-1/+1
| | |
* | | Use PKG_CHECK_MODULES to detect libxml2Hugh McMaster2019-04-181-2/+0
| | |
* | | Remove support for --with-libxml-dirHugh McMaster2019-04-181-9/+0
| | |
* | | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-1558-78/+78
| | |
* | | Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
* | | 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.
* | | Fix typos in code comments [skip ci]Tyson Andre2019-02-181-2/+2
| | |
* | | run-tests.php: experimental parallel testing supportAndrea Faulds2019-02-181-0/+0
| | |
* | | Remove local variablesPeter Kokot2019-02-0337-333/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | | Remove yearly range from copyright noticeZeev Suraski2019-01-3037-37/+37
| | |
* | | Implement typed propertiesNikita Popov2019-01-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
* | | Use ZEND_THIS macro to hide implementation details in extensions code.Dmitry Stogov2018-11-1515-83/+83
| | |
* | | Replace zend_parse_method_parameters() by zend_parse_parameters() and avoid ↵Dmitry Stogov2018-11-1411-82/+150
| | | | | | | | | | | | useless checks.
* | | Replace getThis() by EX(This), when additional check is not necessary.Dmitry Stogov2018-11-1410-26/+11
| | |
* | | 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-234-20/+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.
* | | Merge branch 'PHP-7.3'Anatol Belski2018-08-171-2/+8
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix memory leak
| * | Fix memory leakAnatol Belski2018-08-171-2/+8
| | |
| * | CleanupAnatol Belski2018-08-171-4/+0
| | | | | | | | | | | | (cherry picked from commit 8b3174f256147a1708821621a8cbe2b257fca737)
| * | Followup fix for ef9ed19e, see also bug #76738Anatol Belski2018-08-171-19/+7
| | | | | | | | | | | | (cherry picked from commit 083285f22a74989689f97d1d53476e7eaec35acc)
| * | Fixed buildXinchen Hui2018-08-171-0/+12
| | | | | | | | | | | | (cherry picked from commit 36f05a80d7cf11fffb827c7f0b6c8e73d3846e8e)
| * | DOMDocument::formatOutput attribute sometimes ignoredAndrew Nester2018-08-172-7/+28
| | | | | | | | | | | | (cherry picked from commit ef9ed19ec7f141311feea1d42467f5773cfc09bc)