summaryrefslogtreecommitdiff
path: root/ext/tidy
Commit message (Collapse)AuthorAgeFilesLines
* Improve class entry generationMáté Kocsis2021-02-161-3/+2
| | | | Related to GH-6701
* Generate class entries for snmp, soap, sockets, sodium, sqlite3, sysv*, tidyMáté Kocsis2021-02-153-14/+34
| | | | Closes GH-6696
* Remove unnecessary TRUE/FALSE defines in tidyNikita Popov2021-01-251-10/+2
| | | | Instead use standard true/false.
* Replace zend_bool uses with boolNikita Popov2021-01-152-13/+13
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* php_tidy_create_node() expects a fixed set of node_typesChristoph M. Becker2020-11-301-3/+1
| | | | | | | This static function is not supposed to deal with arbitrary `node_type`s, so there is no need to do so. Closes GH-6467.
* tidy::repairFile() and ::repairString() return string|falseChristoph M. Becker2020-11-302-3/+3
|
* Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-11-222-1/+24
|\ | | | | | | | | * PHP-7.4: Fix #77594: ob_tidyhandler is never reset
| * Fix #77594: ob_tidyhandler is never resetChristoph M. Becker2020-11-222-1/+24
| | | | | | | | | | | | We reset to original INI value on request shutdown. Closes GH-6425.
* | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2020-10-222-3/+39
|\ \ | |/ | | | | | | * PHP-7.4: Don't crash on uninitialized tidy object
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-10-222-3/+39
| |\ | | | | | | | | | | | | * PHP-7.3: Don't crash on uninitialized tidy object
| | * Don't crash on uninitialized tidy objectNikita Popov2020-10-222-3/+39
| | | | | | | | | | | | | | | | | | "Uninitialized" here means that the object was created ordinarily -- no constructor skipping involved. Most tidy methods seem to handle this fine, but these three need to be guarded.
* | | Verify parameter names of function aliasesMáté Kocsis2020-10-162-5/+5
| | | | | | | | | | | | Closes GH-6335
* | | Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-10-072-4/+34
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #77040: tidyNode::isHtml() is completely broken
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-072-4/+34
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #77040: tidyNode::isHtml() is completely broken
| | * Fix #77040: tidyNode::isHtml() is completely brokenChristoph M. Becker2020-10-072-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation of `tidyNode::isHtml()` states that this method "checks if a node is part of a HTML document". That is, of course, nonsense, since a tidyNode is "an HTML node in an HTML file, as detected by tidy." What this method is actually supposed to do is to check whether a node is an element (unless it is the root element). This has been broken by commit d8eeb8e[1], which assumed that `enum TidyNodeType` would represent flags of a bitmask, what it does not. [1] <http://git.php.net/?p=php-src.git;a=commit;h=d8eeb8e28673236bca3f066ded75037a5bdf6378> Closes GH-6290.
* | | Update ext/tidy parameter namesNikita Popov2020-10-073-70/+59
| | | | | | | | | | | | Closes GH-6283.
* | | Consolidate new union type ZPP macro namesMáté Kocsis2020-09-111-7/+7
| | | | | | | | | | | | | | | | | | | | | They will now follow the canonical order of types. Older macros are left intact due to maintaining BC. Closes GH-6112
* | | Fix UNKNOWN default values in various extensionsMáté Kocsis2020-09-073-24/+24
| | | | | | | | | | | | Closes GH-6075
* | | Add more precise type info for stubsMáté Kocsis2020-09-013-102/+105
| | | | | | | | | | | | Closes GH-6005
* | | Promote warnings to exceptions in ext/tidyMáté Kocsis2020-09-016-52/+62
| | | | | | | | | | | | Closes GH-6051
* | | ValueError for empty path in stream codeGeorge Peter Banyard2020-07-311-7/+14
| | | | | | | | | | | | Closes GH-5902
* | | Review the usage of apostrophes in error messagesMáté Kocsis2020-07-101-1/+1
| | | | | | | | | | | | Closes GH-5590
* | | Remove proto comments from C filesMax Semenik2020-07-061-74/+37
| | | | | | | | | | | | Closes GH-5758
* | | 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 Tidy extensionGeorge Peter Banyard2020-05-183-17/+17
| | |
* | | [skip ci] Fix comment in Tidy autoconf fileGeorge Peter Banyard2020-04-191-1/+1
| | |
* | | Add -Wno-ignored-qualifiers compiler flag to Tidy extension.George Peter Banyard2020-04-141-2/+3
| | | | | | | | | | | | This is an issue in the provided library and needs to be fixed upstream.
* | | Generate function entries from stubs for a couple of extensionsMáté Kocsis2020-04-144-225/+283
| | | | | | | | | | | | | | | Migrates ext/standard, ext/tidy, ext/tokenizer, ext/xml, ext/xml_reader, and ext/xml_writer. Closes GH-5381.
* | | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-5/+5
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Revert "Replace @param annotations with type declarations"Christoph M. Becker2020-02-172-18/+27
| | | | | | | | | | | | This reverts commit c31029f335ca1b453af799805c43c37e959ad555.
* | | Replace @param annotations with type declarationsChristoph M. Becker2020-02-162-27/+18
| | |
* | | Reindent phpt filesNikita Popov2020-02-0314-39/+39
| | |
* | | Use RETURN_THROWS() after zend_parse_method_parameters()Máté Kocsis2020-01-021-2/+2
| | |
* | | Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-10/+10
| | | | | | | | | | | | Except for some bigger ones: reflection, sodium, spl
* | | Add union return types with one classMáté Kocsis2019-11-182-24/+18
| | |
* | | Add union return types for function stubsMáté Kocsis2019-11-112-21/+12
| | |
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-252-4/+0
| | | | | | | | | | | | Closes GH-4732.
* | | Just return on ZPP exceptionChristoph M. Becker2019-09-221-10/+10
| | | | | | | | | | | | No need to return FALSE.
* | | Fix arginfo of tidy_repair_string()Christoph M. Becker2019-09-222-2/+1
| | | | | | | | | | | | Cf. 5356bad8c66d9df437c5136d02f6654a5b56b2b9.
* | | Remove unused parameterChristoph M. Becker2019-09-222-5/+6
| | | | | | | | | | | | | | | The `$use_include_path` parameter doesn't make sense for `tidy_repair_string()`, and actually unused, so we remove it.
* | | Add ext/tidy stubsChristoph M. Becker2019-09-223-158/+357
| | |
* | | Properly use zend_parse_method_parameters()Christoph M. Becker2019-09-221-29/+9
| | | | | | | | | | | | | | | | | | | | | `zend_parse_method_parameters()` is meant for dual (procedural and OO) APIs; there is no need to attempt to get "this" first, and to dispatch to `zend_parse_parameters()` and `zend_parse_method_parameters()`, respectively.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-06-191-1/+5
|\ \ \ | |/ /
| * | Fix various instances of memcpy null ubNikita Popov2019-06-191-1/+5
| | |
* | | Merge branch 'PHP-7.4'Peter Kokot2019-05-121-6/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Normalize comments in *nix build system m4 files
| * | Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge branch 'PHP-7.4'Peter Kokot2019-03-156-7/+7
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
| * | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-156-7/+7
| | |
* | | Adjust tests for zpp TypeError changeNikita Popov2019-03-111-7/+0
| | |
* | | Merge branch 'PHP-7.4'Peter Kokot2019-03-071-2/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Add AS_HELP_STRING to *nix build configure options