mediawiki-extensions-Scribunto/engines/LuaStandalone/mw_main.lua
Brad Jorsch 9aca31681a LuaStandalone: Improve passing of numeric values
For integers from Lua to PHP, make sure they won't use exponential
notation that will confuse unserialize(), and pass the integer size from
PHP so Lua can know which numbers are representable as integers.

For doubles in both directions, increase the precision to avoid
truncation of the least significant bits.

Change-Id: Icfaff71cab0ee1aac04acf752d108049b5569380
2018-02-06 16:54:52 -05:00

9 lines
202 B
Lua

package.path = arg[1] .. '/engines/LuaStandalone/?.lua;' ..
arg[1] .. '/engines/LuaCommon/lualib/?.lua'
require('MWServer')
require('mwInit')
server = MWServer:new( arg[2], arg[3] )
server:execute()