mediawiki-extensions-Scribunto/engines
Brad Jorsch 790311faa3 Sanify handling of array keys
When passing an array from PHP to Lua, stringify integer array keys
beyond the range a lua_Number can represent.

When passing a table from Lua to PHP,
* Avoid exponential encoding for integer keys beyond 1e14, so Zend PHP
  will interpret them as integers.
* Always encode integer keys as integers, so HHVM will interpret them as
  integers.
* Detect collisions, e.g. { [0] = 'foo', ["0"] = 'bar' }

Bug: T186240
Change-Id: I078068ed57df078248a307608381614bdfc70801
2018-02-06 17:13:20 -05:00
..
LuaCommon Merge "Improve some parameter docs" 2018-01-16 16:21:51 +00:00
LuaSandbox Improve some parameter docs 2017-09-25 18:07:03 +00:00
LuaStandalone Sanify handling of array keys 2018-02-06 17:13:20 -05:00