src/site/php/extensions fix.php

Functions

cfw_extensions_installed()

cfw_extensions_installed() : bool

Marks that the extension functions below are in place.

Returns

bool —

Always TRUE.

extension_loaded()

extension_loaded(string  $extension) : bool

Tells whether an extension is loaded, counting the gated shims.

Parameters

string $extension

An extension name, in any case.

Returns

bool —

TRUE when the extension is built in or a gated shim covers its whole API.

get_loaded_extensions()

get_loaded_extensions(bool  $zend_extensions = false) : array<int,string>

Answers from a catalog of extension names, because the built-in that listed them is gone.

Parameters

bool $zend_extensions

Whether to list Zend extensions instead.

Returns

array —

The extension names.

get_extension_funcs()

get_extension_funcs(string  $extension) : array<int,string>|false

Lists the functions an extension provides, counting the gated shims.

Parameters

string $extension

An extension name, in any case.

Returns

array|false —

The function names, or FALSE when the extension is unknown or has none.