Results of 1 - 7 of about 7 for LuaSandboxRuntimeError (0.001 sec.)
- The LuaSandboxRuntimeError class | PHP 8.3 12050
- 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
- Basic usage for LuaSandbox | PHP 8.3 10978
- 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 *
... ticate' => 'frobnosticate' , 'output' => function ( $string ) { echo " $string \n" ; }, 'error' => function () { throw new LuaSandboxRuntimeError ( "Something is wrong" ); } ] ); // Execute some Lua code, including callbacks into PHP and into Lua $luaCode = <<<EOF php ... i , $frob ) = $sandbox -> loadString ( $luaCode )-> call (); assert ( $frob -> call ( 4000 ) === [ 4242 ] ); // PHP-thrown LuaSandboxRuntimeError exceptions can be caught inside Lua list( $ok , $message ) = $sandbox -> loadString ( 'return pcall( php.error )' )-> call ...
-
https://man.mtool.work/php/8.3/luasandbox.examples-basic.html
- LuaSandbox | PHP 8.3 10160
- LuaSandbox はじめに LuaSandbox is an extension for PHP 7 and PHP 8 to allow safely running untrusted Lua 5.1 code from within PHP. Differences compared to the Lua extension: LuaSandbox has support for time and memory limits. LuaSandbox prov
... rError class LuaSandboxFatalError — The LuaSandboxFatalError class LuaSandboxMemoryError — The LuaSandboxMemoryError class LuaSandboxRuntimeError — The LuaSandboxRuntimeError class LuaSandboxSyntaxError — The LuaSandboxSyntaxError class LuaSandboxTimeoutError — The Lu ...
-
https://man.mtool.work/php/8.3/book.luasandbox.html
- LuaSandbox::wrapPhpFunction — Wrap a PHP callable in a LuaSandboxFunction | PHP... 8270
- 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
... empty), or null which is equivalent to returning the empty array. 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 re ...
-
https://man.mtool.work/php/8.3/luasandbox.wrapphpfunction.html
- LuaSandbox::registerLibrary — Register a set of PHP functions as a Lua library ... 7452
- LuaSandbox::registerLibrary (PECL luasandbox >= 1.0.0) LuaSandbox::registerLibrary — Register a set of PHP functions as a Lua library 説明 public function LuaSandbox::registerLibrary ( string $libname , array $functions ): void Registers a
... ticate' => 'frobnosticate' , 'output' => function ( $string ) { echo " $string \n" ; }, 'error' => function () { throw new LuaSandboxRuntimeError ( "Something is wrong" ); } ] ); ?> 参考 LuaSandbox::loadString() - Load Lua code into the Lua environment LuaSandbox::wra ...
-
https://man.mtool.work/php/8.3/luasandbox.registerlibrary.html
- その他の基本モジュール | PHP 8.3 7452
- その他の基本モジュール GeoIP — Geo IP ロケーション インストール/設定 定義済み定数 GeoIP 関数 FANN — FANN (Fast Artificial Neural Network) インストール/設定 定義済み定数 例 Fann 関数 FANNConnection — The FANNConnection class Igbinary インスト
... rError class LuaSandboxFatalError — The LuaSandboxFatalError class LuaSandboxMemoryError — The LuaSandboxMemoryError class LuaSandboxRuntimeError — The LuaSandboxRuntimeError class LuaSandboxSyntaxError — The LuaSandboxSyntaxError class LuaSandboxTimeoutError — The Lu ...
-
https://man.mtool.work/php/8.3/refs.basic.other.html
- LuaSandboxFunction::call — Call a Lua function | PHP 8.3 7179
- LuaSandboxFunction::call (PECL luasandbox >= 1.0.0) LuaSandboxFunction::call — Call a Lua function 説明 public function LuaSandboxFunction::call ( string ...$args ): array | bool Calls a Lua function. Errors considered to be the fault of th
... ning false and E_WARNING being raised, for example, a resource type being used as an argument. Lua errors will result in a LuaSandboxRuntimeError exception being thrown. PHP and Lua types are converted as follows: PHP null is Lua nil , and vice versa. PHP int s and fl ...
-
https://man.mtool.work/php/8.3/luasandboxfunction.call.html
PREV
1
NEXT