aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser/ParserDiffTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove ParserDiffTestC. Scott Ananian2020-04-161-119/+0
| | | | | | | | | | | | | | | | | | | This class was last used in ~2008 as @tstarling was developing the original wikitext Parser. It has since code-rotted and wouldn't work as a drop in for the Parser class any more anyway. We'll probably (re)invent something similar when we eventually switch Message rendering from the legacy parser to Parsoid, but this existing code isn't a good starting point for that; we'll need to tackle T236812 (splitting Parser into a base class) first. Last meaningful change to ParserDiffTest: 350b498b9ff2572b52e899ca475be9c2583fec56 Code search: https://codesearch.wmflabs.org/search/?q=ParserDiffTest&i=nope&files=&repos= Bug: T236811 Change-Id: I98f1ef8ad296791a810bd8b10343f8640fd23c5e
* Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNullJames D. Forrester2020-01-101-1/+1
| | | | Change-Id: I90cfe8366c0245c9c67e598d17800684897a4e27
* Upgrade phan config to 0.7.1Daimona Eaytoy2019-09-041-0/+1
| | | | | | | | This allows us to remove many suppressions for phan false positives. Bug: T231636 Depends-On: I82a279e1f7b0fdefd3bb712e46c7d0665429d065 Change-Id: I5c251e9584a1ae9fb1577afcafb5001e0dcd41c7
* Get rid of call_user_func(_array)(), part 3Max Semenik2018-06-101-7/+4
| | | | | | Also cleaned up nearby code in a couple places. Change-Id: Ibf44ee7c0ceb739d7e79406e4ff39303c316e285
* Fix php code stylePaladox2017-05-051-2/+1
| | | | | | Preparation change for updating mediawiki code sniffer to 0.8.0 Change-Id: Ib0b3fe4afea9096ffa3a1347b4f7e07d3398b0b2
* Convert all array() syntax to []Kunal Mehta2016-02-171-4/+4
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Use a fixed marker prefix string in the Parser and MWTidyOri Livneh2015-05-311-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Generating one-time, unique strip markers hurts us in multiple ways: * The strip marker regexes don't benefit from JIT compilation, so they are slower to execute than they could be. * Although the regexes don't benefit from JIT compilation, they are still compiled, because HHVM bets on regexes getting reused. This extra work is fairly costly (1-2% of CPU usage on the app servers) and doesn't pay off. * The size of the PCRE JIT cache is finite, and the caching of one-off regexes displaces from the cache regexes which are in fact reused. Tim's preferred solution (per his review comment on https://gerrit.wikimedia.org/r/167530/) is to use fixed strip markers. So: * Replace usage of $parser->mUniqPrefix with Parser::MARKER_PREFIX, which complements the existing Parser::MARKER_SUFFIX. * Deprecate Parser::mUniqPrefix and its accessor, Parser::uniqPrefix(). * Deprecate Parser::getRandomString(), since it is no longer useful. * In Preprocessor_*:preprocessToObj() and Parser::fetchTemplateAndTitle, replace any occurences of \x7f with '?', to prevent strip marker forgery. \x7f is not valid input anyway. * Deprecate the $prefix parameter for StripState::__construct, since a custom prefix may no longer be specified. Change-Id: I31d4556bbb07acb72c33fda335fa5a230379a03f
* Fix phpcs issues in parseraddshore2014-08-121-10/+10
| | | | | | | | This fixes all issues except for: - class names - line length Change-Id: Ie91b010d5b3eec49d3b80b6e93b125a901ef43c6
* Rename Parser_DiffTest class to ParserDiffTestwithoutaname2014-06-221-0/+143
Change-Id: I5fca44a3fffbc60a66be32fad9ed6d1713056d81