mediawiki-extensions-Scribunto/engines/LuaStandalone
Brad Jorsch 71d9f600dc (bug 46294) Fix for Windows text-mode file handles
On Windows for LuaStandalone, the lua executable's standard output is a
text-mode file handle, even if the pipe is opened from PHP with the
binary flag. Which means that when Lua returns a "\n", it gets silently
rewritten to "\r\n" and the unserialization fails.

So, change the protocol for Lua→PHP messages to encode \r and \n (and \
itself, as the escape character) to avoid this issue.

Bug: 46294
Change-Id: I73b5f44e8aa0334f5fd03013dc027d1a57318349
2013-04-02 23:05:38 +00:00
..
binaries Add a Mac OS X (Lion) lua binary. Compiled for 32 and 64bit. 2012-06-06 23:01:48 +02:00
lua_ulimit.sh Added tests and fixed bugs 2012-04-16 14:41:08 +10:00
LuaStandaloneEngine.php (bug 46294) Fix for Windows text-mode file handles 2013-04-02 23:05:38 +00:00
mw_main.lua Added more Lua environment features 2012-04-18 13:46:18 +10:00
MWServer.lua (bug 46294) Fix for Windows text-mode file handles 2013-04-02 23:05:38 +00:00
protocol.txt (bug 46294) Fix for Windows text-mode file handles 2013-04-02 23:05:38 +00:00