Results of 1 - 4 of about 4 for pauseUsageTimer (0.001 sec.)
- LuaSandbox::pauseUsageTimer — Pause the CPU usage timer | PHP 8.3 11705
- LuaSandbox::pauseUsageTimer (PECL luasandbox >= 1.4.0) LuaSandbox::pauseUsageTimer — Pause the CPU usage timer 説明 public function LuaSandbox::pauseUsageTimer (): bool Pauses the CPU usage timer. This only has effect when called from withi
... } // Register a PHP callback $sandbox -> registerLibrary ( 'php' , [ 'test' => function () use ( $sandbox ) { $sandbox -> pauseUsageTimer (); doWait ( 5 ); $sandbox -> unpauseUsageTimer (); doWait ( 0.1 ); }, 'test2' => function () use ( $sandbox ) { $sandbox ... -> pauseUsageTimer (); $sandbox -> unpauseUsageTimer (); doWait ( 1.1 ); } ] ); echo "This should not time out...\n" ; $sandbox -> loadString ... for this script was exceeded 参考 LuaSandbox::setCPULimit() - Set the CPU time limit for the Lua environment LuaSandbox::unpauseUsageTimer() - Unpause the timer paused by LuaSandbox::pauseUsageTimer 他のマニュアルの関連ページ Linux JM time(7) Linux JM time(1) P ...
-
https://man.mtool.work/php/8.3/luasandbox.pauseusagetimer.html
- LuaSandbox::unpauseUsageTimer — Unpause the timer paused by LuaSandbox::pauseUs... 10189
- LuaSandbox::unpauseUsageTimer (PECL luasandbox >= 1.4.0) LuaSandbox::unpauseUsageTimer — Unpause the timer paused by LuaSandbox::pauseUsageTimer() 説明 public function LuaSandbox::unpauseUsageTimer (): void Unpauses the timer paused by LuaS
... andbox::pauseUsageTimer() . パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 参考 LuaSandbox::pauseUsageTimer() - Pause the ...
-
https://man.mtool.work/php/8.3/luasandbox.unpauseusagetimer.html
- The LuaSandbox class | PHP 8.3 8155
- The LuaSandbox class (PECL luasandbox >= 1.0.0) はじめに The LuaSandbox class creates a Lua environment and allows for execution of Lua code. クラス概要 class LuaSandbox { /* 定数 */ const int SAMPLES = 0 ; const int SECONDS = 1 ; const int
... uaSandboxFunction public function loadString ( 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 setMemoryLimit ( int $limit ): void public function unpauseUsageTimer (): void public function wrapPhpFunction ( callable $function ): LuaSandboxFunction } 定義済み定数 LuaSandbox::SAMPLES Use ... compiled 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::set ...
-
https://man.mtool.work/php/8.3/class.luasandbox.html
- LuaSandbox | PHP 8.3 6897
- 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
... compiled 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::set ... 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 LuaSandbo ...
-
https://man.mtool.work/php/8.3/book.luasandbox.html
PREV
1
NEXT