php / latest / finfo.construct.html

finfo::__construct

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

finfo::__constructAlias of finfo_open()

Description

public finfo::__construct(int $flags = FILEINFO_NONE, ?string $magic_database = null)

This function is an alias of: finfo_open()

Changelog

Version Description
8.0.3 magic_database is nullable now.

© 1997–2023 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/finfo.construct.php