Prior to PHP 8.1.0, there was one resource used in the Fileinfo extension: a magic database descriptor returned by finfo_open().