php8.5
Home/ Manual/ fileinfo / functions/ finfo_close

finfo_close

PHP function Deprecated as of PHP 8.5.0 Edit on GitHub ✎

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

Close finfo instance

Function-8-5-0

Description

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.

Parameters

finfo

Finfo

Return Values

Always

Changelog

VersionDescription
8.5.0This function has been deprecated.
8.5.0The return type is true now; previously, it was bool.
8.1.0This function is a NOP now.

Source: reference/fileinfo/functions/finfo-close.xml · from the official PHP manual (php/doc-en)