phpday 2027 - Call for Papers

ReflectionFunction::isDisabled

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

ReflectionFunction::isDisabled — 関数が無効になっているかどうかを調べる

警告

この関数は PHP 8.0.0 で 非推奨になります。この関数に頼らないことを強く推奨します。

説明

#[\Deprecated(
    since: '8.0',
    message: "as ReflectionFunction can no longer be constructed for disabled functions",
)]

public function ReflectionFunction::isDisabled(): bool

disable_functions ディレクティブで関数が無効になっているかどうかを調べます。

パラメータ

この関数にはパラメータはありません。

戻り値

無効になっている場合に true、それ以外の場合に false を返します。

変更履歴

バージョン 説明
8.0.0 この関数は推奨されなくなりました。 ReflectionFunction は無効な関数を作成しなくなったためです。

参考

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top