summaryrefslogtreecommitdiff
path: root/ext/fileinfo/fileinfo.stub.php
blob: a951e573dcd07eb305a551e10e59fb5827d50c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php

/** @generate-function-entries */

class finfo
{
    /** @alias finfo_open */
    public function __construct(int $options = FILEINFO_NONE, string $arg = "") {}

    /**
     * @param resource|null $context
     * @return string|false
     * @alias finfo_file
     */
    public function file(string $file_name, int $options = FILEINFO_NONE, $context = null) {}

    /**
     * @param resource|null $context
     * @return string|false
     * @alias finfo_buffer
     */
    public function buffer(string $string, int $options = FILEINFO_NONE, $context = null) {}

    /**
     * @return bool
     * @alias finfo_set_flags
     */
    public function set_flags(int $options) {}
}

/** @return resource|false */
function finfo_open(int $options = FILEINFO_NONE, string $arg = "") {}

/**
 * @param resource $finfo
 */
function finfo_close($finfo): bool {}

/**
 * @param resource $finfo
 */
function finfo_set_flags($finfo, int $options): bool {}

/**
 * @param resource $finfo
 * @param resource|null $context
 */
function finfo_file($finfo, string $file_name, int $options = FILEINFO_NONE, $context = null): string|false {}

/**
 * @param resource $finfo
 * @param resource|null $context
 */
function finfo_buffer($finfo, string $string, int $options = FILEINFO_NONE, $context = null): string|false {}

/**
 * @param resource|string $filename
 */
function mime_content_type($filename): string|false {}