Results of 1 - 10 of about 17 for registerLibrary (0.001 sec.)
- Register a set of PHP functions as a Lua library 12794
- « LuaSandbox::pauseUsageTimer LuaSandbox::setCPULimit » PHP Manual LuaSandbox Register a set of PHP functions as a Lua library 検索 LuaSandbox::registerLibrary (PECL luasandbox >= 1.0.0) LuaSandbox::registerLibrary — Register a set of PHP f
... unctions as a Lua library 説明 public function LuaSandbox::registerLibrary ( string $libname , array $functions ): void Registers a set of PHP functions as a Lua library, so that Lua can call the r ... ox (); // Register some functions in the Lua environment function frobnosticate ( $v ) { return [ $v + 42 ]; } $sandbox -> registerLibrary ( 'php' , [ 'frobnosticate' => 'frobnosticate' , 'output' => function ( $string ) { echo " $string \n" ; }, 'error' => fun ... ion() - Wrap a PHP callable in a LuaSandboxFunction 関連キーワード: functions Lua LuaSandbox set library function Register registerLibrary new string call name frobnosticate libname array code return LuaSandboxFunction table callable ...
-
https://man.mtool.work/php/8.3/luasandbox.registerlibrary.html
- Register a set of PHP functions as a Lua library 12794
- « LuaSandbox::pauseUsageTimer LuaSandbox::setCPULimit » PHP Manual LuaSandbox Register a set of PHP functions as a Lua library 検索 LuaSandbox::registerLibrary (PECL luasandbox >= 1.0.0) LuaSandbox::registerLibrary — Register a set of PHP f
... unctions as a Lua library 説明 public function LuaSandbox::registerLibrary ( string $libname , array $functions ): void Registers a set of PHP functions as a Lua library, so that Lua can call the r ... ox (); // Register some functions in the Lua environment function frobnosticate ( $v ) { return [ $v + 42 ]; } $sandbox -> registerLibrary ( 'php' , [ 'frobnosticate' => 'frobnosticate' , 'output' => function ( $string ) { echo " $string \n" ; }, 'error' => fun ... box::wrapPhpFunction() - Wrap a PHP callable in a LuaSandboxFunction 関連キーワード: functions LuaSandbox library Register registerLibrary call frobnosticate libname code return LuaSandboxFunction table callable sandbox environment pauseUsageTimer setCPULimit l ...
-
https://man.mtool.work/php/8.3/luasandbox.registerlibrary.html
- Pause the CPU usage timer 9535
- « LuaSandbox::loadString LuaSandbox::registerLibrary » PHP Manual LuaSandbox Pause the CPU usage timer 検索 LuaSandbox::pauseUsageTimer (PECL luasandbox >= 1.4.0) LuaSandbox::pauseUsageTimer — Pause the CPU usage timer 説明 public function
... otime ( true ) + $t ; while ( microtime ( true ) < $end ) { // waste CPU cycles } } // Register a PHP callback $sandbox -> registerLibrary ( 'php' , [ 'test' => function () use ( $sandbox ) { $sandbox -> pauseUsageTimer (); doWait ( 5 ); $sandbox -> unpauseUsag ... ll usage pauseUsageTimer Lua function php doWait test echo time out Pause loadString callback new paused unpauseUsageTimer registerLibrary ...
-
https://man.mtool.work/php/8.3/luasandbox.pauseusagetimer.html
- Pause the CPU usage timer 9535
- « LuaSandbox::loadString LuaSandbox::registerLibrary » PHP Manual LuaSandbox Pause the CPU usage timer 検索 LuaSandbox::pauseUsageTimer (PECL luasandbox >= 1.4.0) LuaSandbox::pauseUsageTimer — Pause the CPU usage timer 説明 public function
... otime ( true ) + $t ; while ( microtime ( true ) < $end ) { // waste CPU cycles } } // Register a PHP callback $sandbox -> registerLibrary ( 'php' , [ 'test' => function () use ( $sandbox ) { $sandbox -> pauseUsageTimer (); doWait ( 5 ); $sandbox -> unpauseUsag ... ード: timer LuaSandbox sandbox call usage pauseUsageTimer doWait time out Pause loadString callback paused unpauseUsageTimer registerLibrary execution unpaused calls again second limit setCPULimit microtime luasandbox Pauses effect ...
-
https://man.mtool.work/php/8.3/luasandbox.pauseusagetimer.html
- Set the CPU time limit for the Lua environment 8862
- « LuaSandbox::registerLibrary LuaSandbox::setMemoryLimit » PHP Manual LuaSandbox Set the CPU time limit for the Lua environment 検索 LuaSandbox::setCPULimit (PECL luasandbox >= 1.0.0) LuaSandbox::setCPULimit — Set the CPU time limit for the
... t time limit time Set setCPULimit sandbox setMemoryLimit function float used call LuaSandboxTimeoutError while running new registerLibrary Search ...
-
https://man.mtool.work/php/8.3/luasandbox.setcpulimit.html
- Set the CPU time limit for the Lua environment 8759
- « LuaSandbox::registerLibrary LuaSandbox::setMemoryLimit » PHP Manual LuaSandbox Set the CPU time limit for the Lua environment 検索 LuaSandbox::setCPULimit (PECL luasandbox >= 1.0.0) LuaSandbox::setCPULimit — Set the CPU time limit for the
... environment limit time limit time setCPULimit sandbox setMemoryLimit float used call LuaSandboxTimeoutError while running registerLibrary luasandbox Sets total user system after method exceeds exception thrown ...
-
https://man.mtool.work/php/8.3/luasandbox.setcpulimit.html
- The LuaSandbox class 8535
- « Basic usage for LuaSandbox LuaSandbox::callFunction » PHP Manual LuaSandbox The LuaSandbox class 検索 The LuaSandbox class (PECL luasandbox >= 1.0.0) はじめに The LuaSandbox class creates a Lua environment and allows for execution of Lua
... ing ( string $code , string $chunkName = '' ): LuaSandboxFunction public function pauseUsageTimer (): bool public function registerLibrary ( string $libname , array $functions ): void public function setCPULimit ( float | bool $limit ): void public function set ... x::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 environmen ...
-
https://man.mtool.work/php/8.3/class.luasandbox.html
- The LuaSandbox class 8535
- « Basic usage for LuaSandbox LuaSandbox::callFunction » PHP Manual LuaSandbox The LuaSandbox class 検索 The LuaSandbox class (PECL luasandbox >= 1.0.0) はじめに The LuaSandbox class creates a Lua environment and allows for execution of Lua
... ing ( string $code , string $chunkName = '' ): LuaSandboxFunction public function pauseUsageTimer (): bool public function registerLibrary ( string $libname , array $functions ): void public function setCPULimit ( float | bool $limit ): void public function set ... x::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 environmen ...
-
https://man.mtool.work/php/8.3/class.luasandbox.html
- Wrap a PHP callable in a LuaSandboxFunction 7741
- « LuaSandbox::unpauseUsageTimer LuaSandboxFunction » PHP Manual LuaSandbox Wrap a PHP callable in a LuaSandboxFunction 検索 LuaSandbox::wrapPhpFunction (PECL luasandbox >= 1.2.0) LuaSandbox::wrapPhpFunction — Wrap a PHP callable in a LuaSan
... . 戻り値 Returns a LuaSandboxFunction . 参考 LuaSandbox::loadString() - Load Lua code into the Lua environment LuaSandbox::registerLibrary() - Register a set of PHP functions as a Lua library 関連キーワード: LuaSandboxFunction LuaSandbox Lua callable function W ...
-
https://man.mtool.work/php/8.3/luasandbox.wrapphpfunction.html
- Wrap a PHP callable in a LuaSandboxFunction 7741
- « LuaSandbox::unpauseUsageTimer LuaSandboxFunction » PHP Manual LuaSandbox Wrap a PHP callable in a LuaSandboxFunction 検索 LuaSandbox::wrapPhpFunction (PECL luasandbox >= 1.2.0) LuaSandbox::wrapPhpFunction — Wrap a PHP callable in a LuaSan
... . 戻り値 Returns a LuaSandboxFunction . 参考 LuaSandbox::loadString() - Load Lua code into the Lua environment LuaSandbox::registerLibrary() - Register a set of PHP functions as a Lua library 関連キーワード: LuaSandboxFunction LuaSandbox callable Wrap wrapPhpFu ...
-
https://man.mtool.work/php/8.3/luasandbox.wrapphpfunction.html