« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 24 for hook (0.002 sec.)
Swoole\Runtime::enableCoroutine — Enable coroutine for specified functions | PH... 11876
Swoole\Runtime::enableCoroutine (No version information available, might only be in Git) Swoole\Runtime::enableCoroutine — Enable coroutine for specified functions 説明 public static function Swoole\Runtime::enableCoroutine ( int $flags = S ... WOOLE_HOOK_ALL ): void This method enables coroutine support for specified PHP functions based on the given flags. It should be calle ... d once at the beginning of the application. パラメータ flags Bitmask of flags specifying which functions to hook. Can be combined using | operator. Available flags: SWOOLE_HOOK_TCP , SWOOLE_HOOK_UDP , SWOOLE_HOOK_UNIX , SWOOLE_HOOK_UDG ... , SWOOLE_HOOK_SSL , SWOOLE_HOOK_TLS , SWOOLE_HOOK_SLEEP , SWOOLE_HOOK_FILE , SWOOLE_HOOK_STREAM_FUNCTION , SWOOLE_HOOK_BLOCKING_FUNCTION ...
https://man.mtool.work/php/8.3/swoole-runtime.enable-coroutine.html
uopz_set_hook — Sets hook to execute when entering a function or method | PHP 8... 11309
uopz_set_hook (PECL uopz 5, PECL uopz 6, PECL uopz 7) uopz_set_hook — Sets hook to execute when entering a function or method 説明 function uopz_set_hook ( string $function , Closure $hook ): bool function uopz_set_hook ( string $class , st ... ring $function , Closure $hook ): bool Sets a hook to execute when entering a function or method. パラメータ class The name of the class. function The na ... me of the function or method. hook A closure to execute when entering the function or method. 戻り値 成功した場合に true を、失敗した場合に false を返します。 ... 例 例1 Basic uopz_set_hook() Usage <?php function foo () { echo 'foo' ; } uopz_set_hook ( 'foo' , function () {echo 'bar' ;}); foo (); ?> 上の例の出力 ...
https://man.mtool.work/php/8.3/function.uopz-set-hook.html
uopz_get_hook — Gets previously set hook on function or method | PHP 8.3 11275
uopz_get_hook (PECL uopz 5, PECL uopz 6, PECL uopz 7) uopz_get_hook — Gets previously set hook on function or method 説明 function uopz_get_hook ( string $function ): Closure function uopz_get_hook ( string $class , string $function ): Clos ... ure Gets the previously set hook on a function or method. パラメータ class The name of the class. function The name of the function or method. 戻り値 Retur ... ns the previously set hook on a function or method, or null if no hook has been set. 例 例1 Basic uopz_get_hook() Usage <?php function foo () { echo ... 'foo' ; } uopz_set_hook ( 'foo' , function () {echo 'bar' ;}); var_dump ( uopz_get_hook ( 'foo' )); ?> 上の例の出力は、 たとえば以下のようになりま ...
https://man.mtool.work/php/8.3/function.uopz-get-hook.html
uopz_unset_hook — Removes previously set hook on function or method | PHP 8.3 11109
uopz_unset_hook (PECL uopz 5, PECL uopz 6, PECL uopz 7) uopz_unset_hook — Removes previously set hook on function or method 説明 function uopz_unset_hook ( string $function ): bool function uopz_unset_hook ( string $class , string $function ... ): bool Removes the previously set hook on a function or method. パラメータ class The name of the class. function The name of the function or method. 戻り値 成功し ... た場合に true を、失敗した場合に false を返します。 例 例1 Basic uopz_unset_hook() Usage <?php function foo () { echo 'foo' ; } uopz_set_hook ( 'foo' , function () {echo 'bar' ;}); foo (); echo PHP_EOL ; ... uopz_unset_hook ( 'foo' ); foo (); ?> 上の例の出力は以下となります。 barfoo foo 参考 uopz_set_hook() - Sets hook to execute when entering ...
https://man.mtool.work/php/8.3/function.uopz-unset-hook.html
Swoole\Runtime::setHookFlags — Set hook flags for coroutine | PHP 8.3 9657
Swoole\Runtime::setHookFlags (No version information available, might only be in Git) Swoole\Runtime::setHookFlags — Set hook flags for coroutine 説明 public static function Swoole\Runtime::setHookFlags ( int $flags ): bool Sets the hook fl ... ags for coroutine support. This dynamically changes the hook flags at runtime. パラメータ flags Bitmask of flags specifying which functions to hook. Same flags as enableCoroutine. 戻り ... 値 成功した場合に true を、失敗した場合に false を返します。 他のマニュアルの関連ページ Linux JM __after_morecore_hook(3) Linux JM __realloc_hook(3) Linux JM malloc_hook(3) Linux JM com_err(3) Python json Python a-conceptual-overview-of-asyn ...
https://man.mtool.work/php/8.3/swoole-runtime.set-hook-flags.html
The Swoole\Runtime class | PHP 8.3 9624
The Swoole\Runtime class (No version information available, might only be in Git) はじめに Swoole\Runtime provides coroutine support for various PHP functions through hook mechanism, allowing synchronous code to work asynchronously in corou ... environment. クラス概要 class Swoole\Runtime { /* メソッド */ public static function enableCoroutine ( int $flags = SWOOLE_HOOK_ALL ): void public static function getHookFlags (): int public static function setHookFlags ( int $flags ): bool } 目次 Sw ... oole\Runtime::enableCoroutine — Enable coroutine for specified functions Swoole\Runtime::getHookFlags — Get current hook flags Swoole\Runtime::setHookFlags — Set hook flags for coroutine 他のマニュアルの関連ページ Linux ... JM __after_morecore_hook(3) Linux JM __free_hook(3) Linux JM malloc_hook(3) Linux JM com_err(3) Python inspect ...
https://man.mtool.work/php/8.3/class.swoole-runtime.html
Swoole\Runtime::getHookFlags — Get current hook flags | PHP 8.3 9357
Swoole\Runtime::getHookFlags (No version information available, might only be in Git) Swoole\Runtime::getHookFlags — Get current hook flags 説明 public static function Swoole\Runtime::getHookFlags (): int Gets the current hook flags. Note t ... hat the returned flags might differ from what was set if some hooks failed. パラメータ This function has no parameters. 戻り値 Returns the current hook flags as a bitmask. 他のマニュアルの関 ... 連ページ Linux JM com_err(3) Linux JM __after_morecore_hook(3) Linux JM __realloc_hook(3) Linux JM malloc_hook(3) Python json ...
https://man.mtool.work/php/8.3/swoole-runtime.get-hook-flags.html
Uopz 関数 | PHP 8.3 9290
Uopz 関数 目次 uopz_add_function — Adds non-existent function or method uopz_allow_exit — Allows control over disabled exit opcode uopz_backup — Backup a function uopz_compose — Compose a class uopz_copy — Copy a function uopz_del_function ... /設定 する uopz_function — Creates a function at runtime uopz_get_exit_status — Retrieve the last set exit status uopz_get_hook — Gets previously set hook on function or method uopz_get_mock — Get the current mock for a class uopz_get_property — Gets ... — 定数を再定義 uopz_rename — Rename a function at runtime uopz_restore — Restore a previously backed up function uopz_set_hook — Sets hook to execute when entering a function or method uopz_set_mock — 新しいオブジェクトを生成する際に、クラスの代わり ... function uopz_set_static — Sets the static variables in function or method scope uopz_undefine — 定数を未定義化 uopz_unset_hook — Removes previously set hook on function or method uopz_unset_mock — 以前に設定したモックを削除する uopz_unset_return — U ...
https://man.mtool.work/php/8.3/ref.uopz.html
Zend に対するユーザー操作 | PHP 8.3 8573
Zend に対するユーザー操作 はじめに uopz (User Operations for Zend) 拡張モジュールは、 コンパイル時および実行時に通常使用される Zend Engine の機能を公開します。 その目的は、PHP コードを表す内部構造の変更を可能にすること、 およびユーザーのコー ... /設定 する uopz_function — Creates a function at runtime uopz_get_exit_status — Retrieve the last set exit status uopz_get_hook — Gets previously set hook on function or method uopz_get_mock — Get the current mock for a class uopz_get_property — Gets ... — 定数を再定義 uopz_rename — Rename a function at runtime uopz_restore — Restore a previously backed up function uopz_set_hook — Sets hook to execute when entering a function or method uopz_set_mock — 新しいオブジェクトを生成する際に、クラスの代わり ... function uopz_set_static — Sets the static variables in function or method scope uopz_undefine — 定数を未定義化 uopz_unset_hook — Removes previously set hook on function or method uopz_unset_mock — 以前に設定したモックを削除する uopz_unset_return — U ...
https://man.mtool.work/php/8.3/book.uopz.html
定義済み定数 | PHP 8.3 8373
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 SWOOLE_VERSION ( string ) Swoole version. SWOOLE_VERSION_ID ( int ) Swoole ve ... p() will return the first message in the queue, Swoole\Process::push() will not add a specific type to the message. SWOOLE_HOOK_TCP ( int ) Coroutine-based stream of TCP Socket type, including the most common ones like Redis, PDO, Mysqli. SWOOLE_HOOK ... _UDP ( int ) Coroutine-based stream of UDP Socket type. SWOOLE_HOOK_UNIX ( int ) Coroutine-based stream for Unix Stream Socket type. SWOOLE_HOOK_UDG ( int ) Coroutine-based stream for UDG St ... ream Socket type. SWOOLE_HOOK_SSL ( int ) Coroutine-based stream for SSL Stream Socket type. SWOOLE_HOOK_TLS ( int ) Coroutine-based stream for TLS Stre ...
https://man.mtool.work/php/8.3/swoole.constants.html
PREV 1 2 3 NEXT