1--TEST--
2mime_content_type(): Testing wrong parameters
3--SKIPIF--
4<?php require_once(__DIR__ . '/skipif.inc'); ?>
5--FILE--
6<?php
7
8mime_content_type(1);
9mime_content_type(NULL);
10mime_content_type(new stdclass);
11mime_content_type(array());
12mime_content_type('foo/inexistent');
13mime_content_type('');
14mime_content_type("\0");
15
16?>
17--EXPECTF--
18Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
19
20Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
21
22Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
23
24Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
25
26Warning: mime_content_type(foo/inexistent): failed to open stream: No such file or directory in %s on line %d
27
28Warning: mime_content_type(): Empty filename or path in %s on line %d
29
30Warning: mime_content_type(): Empty filename or path in %s on line %d
31