PHP 8.4.24 Released!

finfo_close

(PHP >= 5.3.0, PHP 7, PHP 8, PECL fileinfo >= 0.1.0)

finfo_closeClose finfo instance

Увага

This function has been DEPRECATED as of PHP 8.5.0. Relying on this function is highly discouraged.

Опис

#[\Deprecated]
function finfo_close(finfo $finfo): true

This function used to close the instance opened by finfo_open() until PHP 7.4, but it's a no-op since the finfo resource to object conversion done in PHP 8.0, and has been deprecated in PHP 8.5.

Параметри

finfo

Примірник finfo, що повертається функцією finfo_open().

Значення, що повертаються

Завжди повертає true.

Журнал змін

Версія Опис
8.5.0 This function has been deprecated.
8.5.0 The return type is true now; previously, it was bool.
8.1.0 This function is a NOP now.
8.1.0 Тепер параметр finfo має бути примірником finfo, а не resource, як раніше.
add a note

User Contributed Notes

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