php8.5
Home/ Manual/ swoole / runtime/ Swoole\Runtime::getHookFlags

Swoole\Runtime::getHookFlags

PHP function Edit on GitHub ✎

Get current hook flags

Description

Swoole\Runtime::getHookFlags(): int

Gets the current hook flags. Note that the returned flags might differ from what was set if some hooks failed.

Parameters

This function has no parameters.

Return Values

Returns the current hook flags as a bitmask.

Source: reference/swoole/swoole/runtime/getHookFlags.xml · from the official PHP manual (php/doc-en)