« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for pcall (0.001 sec.)
The LuaSandboxFatalError class | PHP 8.3 10644
The LuaSandboxFatalError class (PECL luasandbox >= 1.0.0) はじめに Uncatchable LuaSandbox exceptions. These may not be caught inside Lua using pcall() or xpcall() . クラス概要 class LuaSandboxFatalError extends LuaSandboxError { /* 継承した ...
https://man.mtool.work/php/8.3/class.luasandboxfatalerror.html
The LuaSandboxRuntimeError class | PHP 8.3 10644
The LuaSandboxRuntimeError class (PECL luasandbox >= 1.0.0) はじめに Catchable LuaSandbox runtime exceptions. These may be caught inside Lua using pcall() or xpcall() . クラス概要 class LuaSandboxRuntimeError extends LuaSandboxError { /* 継 ...
https://man.mtool.work/php/8.3/class.luasandboxruntimeerror.html
LuaSandbox::wrapPhpFunction — Wrap a PHP callable in a LuaSandboxFunction | PHP... 10644
LuaSandbox::wrapPhpFunction (PECL luasandbox >= 1.2.0) LuaSandbox::wrapPhpFunction — Wrap a PHP callable in a LuaSandboxFunction 説明 public function LuaSandbox::wrapPhpFunction ( callable $function ): LuaSandboxFunction Wraps a PHP callabl ... . Exceptions will be raised as errors in Lua, however only LuaSandboxRuntimeError exceptions may be caught inside Lua with pcall() or xpcall() . For more information about calling Lua functions and the return values, see LuaSandboxFunction::call() . パ ...
https://man.mtool.work/php/8.3/luasandbox.wrapphpfunction.html
Basic usage for LuaSandbox | PHP 8.3 7721
Basic usage for LuaSandbox Once you've compiled PHP with LuaSandbox support, you can begin using LuaSandbox to safely run user-provided Lua code. 例1 Execute some Lua code <?php $sandbox = new LuaSandbox ; $sandbox -> setMemoryLimit ( 50 * ... hrown LuaSandboxRuntimeError exceptions can be caught inside Lua list( $ok , $message ) = $sandbox -> loadString ( 'return pcall( php.error )' )-> call (); assert ( ! $ok ); assert ( $message === 'Something is wrong' ); ?> 他のマニュアルの関連ページ L ...
https://man.mtool.work/php/8.3/luasandbox.examples-basic.html
Differences from Standard Lua | PHP 8.3 6269
Differences from Standard Lua LuaSandbox provides a sandboxed environment which differs in some ways from standard Lua 5.1. Features that are not available dofile() , loadfile() , and the io package, as they allow direct filesystem access. ... If needed, filesystem access should be done via PHP callbacks. The package package, including require() and module() , as it depends heavily on direct filesystem access. A pure-L ... low for static analysis of Lua code. print() , since it outputs to standard output. If needed, output should be done via PHP callbacks. Most of the os package, as it allows manipulation of the process and executing of other processes. os.clock() , os. ... lectgarbage() , gcinfo() , and the coroutine package have not been reviewed for security. Features that have been modified pcall() and xpcall() cannot catch certain errors, particularly timeout errors. tostring() does not include pointer addresses. st ...
https://man.mtool.work/php/8.3/reference.luasandbox.differences.html
PREV 1 NEXT