mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
29 lines
877 B
PHP
29 lines
877 B
PHP
--TEST--
|
|
mime_content_type(): Testing wrong parameters
|
|
--FILE--
|
|
<?php
|
|
|
|
mime_content_type(1);
|
|
mime_content_type(NULL);
|
|
mime_content_type(new stdclass);
|
|
mime_content_type(array());
|
|
mime_content_type('foo/inexistent');
|
|
mime_content_type('');
|
|
mime_content_type("\0");
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
|
|
|
|
Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
|
|
|
|
Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
|
|
|
|
Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
|
|
|
|
Warning: mime_content_type(): File or path not found 'foo/inexistent' in %s on line %d
|
|
|
|
Warning: mime_content_type(): Empty filename or path in %s on line %d
|
|
|
|
Warning: mime_content_type(): Empty filename or path in %s on line %d
|