CakeFest 2024: The Official CakePHP Conference

ReflectionExtension::isPersistent

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

ReflectionExtension::isPersistent返回扩展是否持久化的

说明

public ReflectionExtension::isPersistent(): bool

检测扩展是否为持久化的。

当使用 php.ini 加载时,则扩展是持久化的。当使用 dl() 加载扩展时,扩展是临时的,而不是持久化的。

参数

此函数没有参数。

返回值

扩展在 extension 配置中被载入返回 true,否则返回 false

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top