phpday 2027 - Call for Papers

finfo_close

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

finfo_close — Close finfo instance

Avviso

Questa funzione è stata DEPRECATA a partire da PHP 8.5.0. Fare affidamento su questa funzione è altamente sconsigliato.

Descrizione

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

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.

Elenco dei parametri

finfo

Un'istanza di finfo, restituita da finfo_open().

Valori restituiti

Restituisce sempre true.

Log delle modifiche

Versione Descrizione
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 Il parametro finfo ora si aspetta un'istanza di finfo; in precedenza, era atteso un resource.
+add a note

User Contributed Notes

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