LuaSandbox

Lua interpreter with limits and safe environment


LuaSandbox is an extension for running untrusted Lua code within a PHP web request. Code is run in a stripped-down, safe environment. Time and memory limits can be set.

License: MIT

Latest releases

Version Release Download
4.1.2 2023-12-13 LuaSandbox-4.1.2.tgz
4.1.1 2023-07-31 LuaSandbox-4.1.1.tgz
4.1.0 2022-09-23 LuaSandbox-4.1.0.tgz
4.0.2 2021-05-19 LuaSandbox-4.0.2.tgz
4.0.1 2021-03-10 LuaSandbox-4.0.1.tgz
Show all releases

Changelog

Version Message
4.1.2 - Run the GC more aggressively, especially as usage approaches the limit (T349462)
4.1.1 - Fix segmentation fault when memory limit is exceeded in LuaSandbox init
- Fix incorrect version reported by phpversion('luasandbox')
4.1.0 - Add PHP 8.2 support
4.0.2 - Add config.w32 package.xml tarball (Closes #80850)
4.0.1 - Add missing file to package.xml tarball
Show complete changelog