https://bugzilla.wikimedia.org/show_bug.cgi?id=19574
Ævar Arnfjörð Bjarmason <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|parserTests.php fails with |parserTests.php fails when |MagicWordArray->parseMatch |l10n_cache is populated |backtrace | --- Comment #1 from Ævar Arnfjörð Bjarmason <[email protected]> 2009-07-08 18:22:46 UTC --- I've found that this happens when the l10n_cache is populated in the DB. Steps to reproduce: mysql> truncate l10n_cache; Query OK, 2809 rows affected (0.05 sec) $ php maintenance/parserTests.php php maintenance/parserTests.php This is MediaWiki version 1.16alpha(r52932). Reading tests from "maintenance/parserTests.txt"... Running test Blank input... PASSED Running test Simple paragraph... PASSED Running test Simple list... PASSED Running test Italics and bold... PASSED [.. the other tests run normally ..] Running the parsertests populates the l10n_cache: mysql> select count(*) from l10n_cache; +----------+ | count(*) | +----------+ | 2741 | +----------+ 1 row in set (0.01 sec) Including the magicwords: mysql> select length(lc_value) from l10n_cache where lc_lang = 'en' and lc_key = 'magicWords'; +------------------+ | length(lc_value) | +------------------+ | 8110 | +------------------+ 1 row in set (0.00 sec) But now running the tests again gives the same error: a...@aoeu:~/mw$ php maintenance/parserTests.php php maintenance/parserTests.php This is MediaWiki version 1.16alpha(r52932). Reading tests from "maintenance/parserTests.txt"... "" is not a valid magic thingie for "redirect" "" is not a valid magic thingie for "int" "" is not a valid magic thingie for "ns" And changing to a filecache works around the problem: $wgCacheDirectory = "$IP/cache/"; a...@aoeu:~/mw$ php maintenance/parserTests.php php maintenance/parserTests.php This is MediaWiki version 1.16alpha(r52932). Reading tests from "maintenance/parserTests.txt"... Running test Blank input... PASSED Running test Simple paragraph... PASSED Running test Simple list... PASSED -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
