Differences from Standard Lua
LuaSandbox provides a sandboxed environment which differs in some ways from standard Lua 5.1.
Features that have been modified
-
pcall()
andxpcall()
cannot catch certain errors, particularly timeout errors. -
tostring()
does not include pointer addresses. -
string.match()
has been patched to limit the recursion depth and to periodically check for a timeout. -
math.random()
andmath.randomseed()
are replaced with versions that don't share state with PHP'srand()
. -
The Lua 5.2
__pairs
and__ipairs
metamethods are supported bypairs()
andipairs()
.
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google