|
LuaSandbox::setMemoryLimitSet the memory limit for the Lua environment Description
public void LuaSandbox::setMemoryLimit(int
$limit )Sets the memory limit for the Lua environment. If this limit is exceeded, a LuaSandboxMemoryError exception is thrown. Parameters
Return ValuesNo value is returned. Examples
Example #1 Calling a Lua function
The above example will output something similar to: PHP Fatal error: Uncaught LuaSandboxMemoryError: not enough memory See Also
|