opcache_get_configuration

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache > 7.0.2)

opcache_get_configuration獲取緩存的配置信息

說明

opcache_get_configuration(): array

該函數(shù)將返回緩存實例的配置信息。

返回值

返回一個數(shù)組,該數(shù)組里包含了緩存的初始化信息,黑名單和版本號。

錯誤/異常

在啟用了 opcache.restrict_api 的情況下,如果當前路徑在禁止規(guī)則里,將會出現(xiàn) E_WARNING ;不會返回任何狀態(tài)信息。

參見