Updated PHP Windows builds for Brotli security fix

enchant_broker_free_dict

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )

enchant_broker_free_dict — Free a dictionary resource

Warnung

Diese Funktion ist seit PHP 8.0.0 als DEPRECATED (veraltet) markiert. Von der Verwendung dieser Funktion wird dringend abgeraten.

Beschreibung

#[\Deprecated(
    since: '8.0',
    message: 'as EnchantDictionary objects are freed automatically',
)]

function enchant_broker_free_dict(EnchantDictionary $dictionary): bool

Free a dictionary. As of PHP 8.0.0, it is recommended to unset the object instead of calling this function.

Parameter-Liste

dictionary

Ein Enchant-Wörterbuch, das von enchant_broker_request_dict() oder enchant_broker_request_pwl_dict() zurückgegeben wird.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Fehler/Exceptions

Throws a ValueError if dictionary is not usable, for example if it is uninitialized or was already released with enchant_broker_free_dict().

Changelog

Version Beschreibung
8.0.0 This function has been deprecated in favor of unsetting the object.
8.0.0 dictionary expects a EnchantDictionary now; previously, a Ressource was expected.

Siehe auch

+add a note

User Contributed Notes

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