finfo_close

Close finfo instance

Warning

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

Description

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

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.

Parameters

finfo

An finfo instance, returned by finfo_open.

Return Values

Always returns true.

Changelog

Version Description
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 The finfo parameter expects an finfo instance now; previously, a resource was expected.