From 76dbe5d804460d268ebc75d945bab730d357c4f9 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 10 Jan 2018 19:46:00 +0530 Subject: [PATCH] Treat phpdbg as being run from the command-line The two lualib/ustring generation scripts run independently of MediaWiki, so the new wfIsCLI() isn't usable there. Bug: T184043 Change-Id: I217657d12e16a7b76dc814be5fed03540c461e7c --- engines/LuaCommon/lualib/ustring/make-normalization-table.php | 2 +- engines/LuaCommon/lualib/ustring/make-tables.php | 2 +- extension.json | 2 +- tests/phpunit/engines/LuaSandbox/LuaSandboxInterpreterTest.php | 2 +- .../engines/LuaStandalone/LuaStandaloneInterpreterTest.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/LuaCommon/lualib/ustring/make-normalization-table.php b/engines/LuaCommon/lualib/ustring/make-normalization-table.php index 1d33a50c..77819372 100755 --- a/engines/LuaCommon/lualib/ustring/make-normalization-table.php +++ b/engines/LuaCommon/lualib/ustring/make-normalization-table.php @@ -1,7 +1,7 @@ #!/usr/bin/php =1.30.0" + "MediaWiki": ">=1.31.0" }, "APIModules": { "scribunto-console": "ApiScribuntoConsole" diff --git a/tests/phpunit/engines/LuaSandbox/LuaSandboxInterpreterTest.php b/tests/phpunit/engines/LuaSandbox/LuaSandboxInterpreterTest.php index e89241fb..256e8c6a 100644 --- a/tests/phpunit/engines/LuaSandbox/LuaSandboxInterpreterTest.php +++ b/tests/phpunit/engines/LuaSandbox/LuaSandboxInterpreterTest.php @@ -1,6 +1,6 @@