« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for LuaSandboxTimeoutError (0.001 sec.)
The LuaSandboxTimeoutError class | PHP 8.3 11619
The LuaSandboxTimeoutError class (PECL luasandbox >= 1.0.0) はじめに Exception thrown when the configured CPU time limit is exceeded. クラス概要 class LuaSandboxTimeoutError extends LuaSandboxFatalError { /* 継承したプロパティ */ protected ...
https://man.mtool.work/php/8.3/class.luasandboxtimeouterror.html
LuaSandbox::setCPULimit — Set the CPU time limit for the Lua environment | PHP ... 10350
LuaSandbox::setCPULimit (PECL luasandbox >= 1.0.0) LuaSandbox::setCPULimit — Set the CPU time limit for the Lua environment 説明 public function LuaSandbox::setCPULimit ( float | bool $limit ): void Sets the CPU time limit for the Lua envir ... onment. If the total user and system time used by the environment after the call to this method exceeds this limit, a LuaSandboxTimeoutError exception is thrown. Time used in PHP callbacks is included in the limit. Setting the time limit from a callback while Lua ... loadString ( 'while true do end' )-> call (); ?> 上の例の出力は、 たとえば以下のようになります。 PHP Fatal error: Uncaught LuaSandboxTimeoutError: The maximum execution time for this script was exceeded 参考 LuaSandbox::getCPUUsage() - Fetch the current CPU time usage ...
https://man.mtool.work/php/8.3/luasandbox.setcpulimit.html
LuaSandbox | PHP 8.3 9835
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 ... or class LuaSandboxRuntimeError — The LuaSandboxRuntimeError class LuaSandboxSyntaxError — The LuaSandboxSyntaxError class LuaSandboxTimeoutError — The LuaSandboxTimeoutError class 他のマニュアルの関連ページ Linux JM clearenv(3) Python binary Django 2.2.17 Django 1.4. ...
https://man.mtool.work/php/8.3/book.luasandbox.html
その他の基本モジュール | PHP 8.3 7317
その他の基本モジュール GeoIP — Geo IP ロケーション インストール/設定 定義済み定数 GeoIP 関数 FANN — FANN (Fast Artificial Neural Network) インストール/設定 定義済み定数 例 Fann 関数 FANNConnection — The FANNConnection class Igbinary インスト ... or class LuaSandboxRuntimeError — The LuaSandboxRuntimeError class LuaSandboxSyntaxError — The LuaSandboxSyntaxError class LuaSandboxTimeoutError — The LuaSandboxTimeoutError class その他 — その他の関数 インストール/設定 定義済み定数 その他の関数 変更履歴 Random — 乱数 ...
https://man.mtool.work/php/8.3/refs.basic.other.html
LuaSandbox::pauseUsageTimer — Pause the CPU usage timer | PHP 8.3 6802
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 ... cho "This should time out.\n" ; try { $sandbox -> loadString ( 'php.test2()' )-> call (); echo "It did not?\n" ; } catch ( LuaSandboxTimeoutError $ex ) { echo "It did! " . $ex -> getMessage () . "\n" ; } ?> 上の例の出力は以下となります。 This should not time out... Th ...
https://man.mtool.work/php/8.3/luasandbox.pauseusagetimer.html
PREV 1 NEXT