1--TEST--
2finfo_file(): Testing file names
3--SKIPIF--
4<?php require_once(__DIR__ . '/skipif.inc'); ?>
5--FILE--
6<?php
7
8$fp = finfo_open();
9var_dump(finfo_file($fp, "\0"));
10var_dump(finfo_file($fp, ''));
11var_dump(finfo_file($fp, NULL));
12var_dump(finfo_file($fp, '.'));
13var_dump(finfo_file($fp, '&'));
14
15?>
16--EXPECTF--
17Warning: finfo_file(): Empty filename or path in %s on line %d
18bool(false)
19
20Warning: finfo_file(): Empty filename or path in %s on line %d
21bool(false)
22
23Warning: finfo_file(): Empty filename or path in %s on line %d
24bool(false)
25string(9) "directory"
26
27Warning: finfo_file(&): failed to open stream: No such file or directory in %s on line %d
28bool(false)
29