Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
LuaSandbox
Introduction
Installing/Configuring
Requirements
Installation
Differences from Standard Lua
Examples
Basic usage for LuaSandbox
LuaSandbox
β The LuaSandbox class
LuaSandbox::callFunction
β Call a function in a Lua global variable
LuaSandbox::disableProfiler
β Disable the profiler
LuaSandbox::enableProfiler
β Enable the profiler.
LuaSandbox::getCPUUsage
β Fetch the current CPU time usage of the Lua environment
LuaSandbox::getMemoryUsage
β Fetch the current memory usage of the Lua environment
LuaSandbox::getPeakMemoryUsage
β Fetch the peak memory usage of the Lua environment
LuaSandbox::getProfilerFunctionReport
β Fetch profiler data
LuaSandbox::getVersionInfo
β Return the versions of LuaSandbox and Lua
LuaSandbox::loadBinary
β Load a precompiled binary chunk into the Lua environment
LuaSandbox::loadString
β Load Lua code into the Lua environment
LuaSandbox::pauseUsageTimer
β Pause the CPU usage timer
LuaSandbox::registerLibrary
β Register a set of PHP functions as a Lua library
LuaSandbox::setCPULimit
β Set the CPU time limit for the Lua environment
LuaSandbox::setMemoryLimit
β Set the memory limit for the Lua environment
LuaSandbox::unpauseUsageTimer
β Unpause the timer paused by LuaSandbox::pauseUsageTimer
LuaSandbox::wrapPhpFunction
β Wrap a PHP callable in a LuaSandboxFunction
LuaSandboxFunction
β The LuaSandboxFunction class
LuaSandboxFunction::call
β Call a Lua function
LuaSandboxFunction::__construct
β Unused
LuaSandboxFunction::dump
β Dump the function as a binary blob
LuaSandboxError
β The LuaSandboxError class
LuaSandboxErrorError
β The LuaSandboxErrorError class
LuaSandboxFatalError
β The LuaSandboxFatalError class
LuaSandboxMemoryError
β The LuaSandboxMemoryError class
LuaSandboxRuntimeError
β The LuaSandboxRuntimeError class
LuaSandboxSyntaxError
β The LuaSandboxSyntaxError class
LuaSandboxTimeoutError
β The LuaSandboxTimeoutError class
Found A Problem?
Learn How To Improve This Page
β’
Submit a Pull Request
β’
Report a Bug
οΌ
add a note
User Contributed Notes
There are no user contributed notes for this page.
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^