summaryrefslogtreecommitdiff
path: root/ext/xsl
Commit message (Collapse)AuthorAgeFilesLines
* Update ext/xsl parameter namesNikita Popov2020-10-082-8/+11
| | | | | | | | | Additionally normalize to using $namespace rather than $uri for namespace parameters, including in XMLReader and XMLWriter. I went with that one as it is currently used by DOM, SimpleXML and XSL -- and our DOM parameter names follow the DOM specification. Closes GH-6295.
* Promote warnings in ext/xslNikita Popov2020-09-283-27/+46
|
* Remove unused XSL_DOMOBJ_NEW() macroNikita Popov2020-09-282-15/+4
| | | | And inline the XSL_REGISTER_CLASS() macro.
* Promote a few forgotten warnings to exceptionsMáté Kocsis2020-09-251-3/+4
| | | | Closes GH-6211
* Run tidyNikita Popov2020-09-184-9/+9
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Consolidate new union type ZPP macro namesMáté Kocsis2020-09-111-2/+2
| | | | | | | They will now follow the canonical order of types. Older macros are left intact due to maintaining BC. Closes GH-6112
* Improve error messages mentioning parameters instead of argumentsMáté Kocsis2020-09-091-1/+1
| | | | Closes GH-5999
* Move custom type checks to ZPPMáté Kocsis2020-09-024-34/+44
| | | | Closes GH-6034
* Add many missing closing PHP tags to testsMáté Kocsis2020-08-0924-0/+24
| | | | Closes GH-5958
* Get rid of empty function entriesMáté Kocsis2020-08-011-10/+1
| | | | Closes GH-5917
* Implement named parametersNikita Popov2020-07-311-0/+1
| | | | | | | | | | | | | | | | | | From an engine perspective, named parameters mainly add three concepts: * The SEND_* opcodes now accept a CONST op2, which is the argument name. For now, it is looked up by linear scan and runtime cached. * This may leave UNDEF arguments on the stack. To avoid having to deal with them in other places, a CHECK_UNDEF_ARGS opcode is used to either replace them with defaults, or error. * For variadic functions, EX(extra_named_params) are collected and need to be freed based on ZEND_CALL_HAS_EXTRA_NAMED_PARAMS. RFC: https://wiki.php.net/rfc/named_params Closes GH-5357.
* Remove no_separation flagNikita Popov2020-07-071-1/+0
|
* Disallow separation in a number of callbacksNikita Popov2020-07-071-2/+1
| | | | All of these clearly do not need separation support.
* Remove proto comments from C filesMax Semenik2020-07-062-29/+16
| | | | Closes GH-5758
* Make exit() unwind properlyNikita Popov2020-06-291-1/+0
| | | | | | | | | | | exit() is now internally implemented by throwing an exception, performing a normal stack unwind and a clean shutdown. This ensures that no persistent resource leaks occur. The exception is internal, cannot be caught and does not result in the execution of finally blocks. This may be relaxed in the future. Closes GH-5768.
* Avoid warning on exception in xsl extNikita Popov2020-06-253-3/+46
|
* Include stub hash in generated arginfo filesNikita Popov2020-06-241-1/+2
| | | | | | | | | | | | The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
* Fix [-Wundef] warning in XLS extensionGeorge Peter Banyard2020-05-203-5/+5
|
* Fix UNKNOWN default values in ext/xslMáté Kocsis2020-05-063-16/+18
|
* Test XSLTProcessor::importStylesheet() with invalid stylesheetSymeon Charalabides2020-04-241-0/+19
|
* Generate method entries for ext/xslMáté Kocsis2020-04-126-62/+35
| | | | Closes GH-5372
* Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-1/+1
| | | | | | | Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* Perform some maintenance work on the XSL extensionMáté Kocsis2020-03-105-135/+196
| | | | | Added stubs, fixed some ZPP, and changed PHP_FALIASes to PHP_METHODs. Closes GH-5241
* Remove DOM_GET_THIS macroNikita Popov2020-03-091-17/+7
| | | | This macro is trivial, it's more obvious to use ZEND_THIS directly.
* Reindent phpt filesNikita Popov2020-02-035-36/+36
|
* Merge branch 'PHP-7.4'Christoph M. Becker2020-01-302-1/+52
|\ | | | | | | | | * PHP-7.4: Fix #70078: XSL callbacks with nodes as parameter leak memory
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-01-302-1/+52
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #70078: XSL callbacks with nodes as parameter leak memory
| | * Fix #70078: XSL callbacks with nodes as parameter leak memoryChristoph M. Becker2020-01-302-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | The fix for bug #49634 solved a double-free by copying the node with `xmlDocCopyNodeList()`, but the copied node is later freed by calling `xmlFreeNode()` instead of `xmlFreeNodeList()`, thus leaking memory. However, there is no need to treat the node as node list, i.e. to copy also the node's siblings; just creating a recursive copy of the node with `xmlDocCopyNode()` is sufficient, while that also avoids the leak.
| | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1535-49/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1425-48/+48
| | |
| | * Sync leading and final newlines in source code filesPeter Kokot2018-10-143-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-131-1/+1
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-211-5/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix file clash in bug54446.phpt tests
| * | Fix file clash in bug54446.phpt testsNikita Popov2020-01-211-5/+5
| | |
* | | Fix #78880: Final spelling fixesMáté Kocsis2020-01-161-2/+2
| | |
* | | Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-7/+7
| | | | | | | | | | | | Except for some bigger ones: reflection, sodium, spl
* | | Clean DONE tags from testsFabien Villepinte2019-11-071-2/+0
| | | | | | | | | | | | | | | | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* | | Cleanup return values when parameter parsing is unsuccessfulMáté Kocsis2019-10-301-6/+6
| | |
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-254-8/+0
| | | | | | | | | | | | Closes GH-4732.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-06-281-1/+4
|\ \ \ | |/ /
| * | Set up asan+ubsan scheduled build on azureNikita Popov2019-06-281-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds an --asan flag to run-tests.php to setup all the necessary environment variables. Some tests are marked as skipped because they are incompatible with asan or too slow. I'm basing this on the DEBUG_ZTS build, which seems to give us the most mileage.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-06-071-45/+12
|\ \ \ | |/ /
| * | ext/xsl: Use PKG_CHECK_MODULES to detect the EXSLT libraryHugh McMaster2019-06-071-15/+6
| | |
| * | ext/xsl: Use PKG_CHECK_MODULES to detect the XSLT libraryHugh McMaster2019-06-071-42/+18
| | |
* | | Merge branch 'PHP-7.4'Dmitry Stogov2019-06-061-4/+7
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Cheaper checks for exceptions thrown from __toString()
| * | Cheaper checks for exceptions thrown from __toString()Dmitry Stogov2019-06-061-4/+7
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2019-06-051-7/+17
|\ \ \ | |/ /
| * | Allow exceptions in __toString()Nikita Popov2019-06-051-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.4'Peter Kokot2019-05-121-2/+0
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Normalize comments in *nix build system m4 files
| * | 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