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
__pairsand__ipairsmetamethods are supported bypairs()andipairs(). 
                    
                    
                    
                    
                    
          