wiki.techinc.nl/tests
C. Scott Ananian 7f1ad7d984 Work around change in SimpleXMLElement behavior introduced in PHP 7.3.17
Upstream bug reports of the behavior change introduced in PHP 7.3.17 (and
applied to PHP 7.4 branch as well):
https://bugs.php.net/bug.php?id=79528
https://bugs.php.net/bug.php?id=79485

The reponsible commit in PHP was https://github.com/php/php-src/pull/5246

This was a "bug fix" in the sense that SimpleXML used to discard the
attributes on the namespace elements, which look like this:
     <namespace key="-2" case="first-letter">Media</namespace>
SimpleXML used to return this as a string "Media" instead of a
SimpleXMLElement... but ExportTest (inadvertently?) depended on that
behavior.

In any case, if we iterate over SimpleXMLElement::children() we always
get SimpleXMLElements, not "sometimes strings", and so our code will
correct correctly on PHP below 7.3.17 and above, regardless of how PHP
decides to handle this "bug".

Bug: T250568
Change-Id: I9c2cb6a86fd6e8023c1979ec6838071a87a7bcea
2020-04-30 18:27:15 -04:00
..
api-testing Merge "SearchHandler: emit Cache-Control header." 2020-04-06 15:53:50 +00:00
common Merge "Disable mail in mediaWikiSetUp() instead of TestSetup" 2020-04-14 03:58:42 +00:00
integration/includes Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
parser Deprecate $wgParserConf 2020-04-16 15:57:37 -04:00
phan
phpunit Work around change in SimpleXMLElement behavior introduced in PHP 7.3.17 2020-04-30 18:27:15 -04:00
qunit mediawiki.util: Simplify $content init() and add tests 2020-04-30 02:07:14 +01:00
selenium [selenium] Make tests skin agnostic 2020-03-25 16:21:18 +01:00
.htaccess