1--TEST--
2imap_utf8_to_mutf7
3--SKIPIF--
4<?php if (!extension_loaded("imap")) print "skip imap extension not loaded"; ?>
5<?php if (!function_exists("imap_utf8_to_mutf7")) print "skip imap_utf8_to_mutf7() not available"; ?>
6--FILE--
7<?php
8
9var_dump(imap_utf8_to_mutf7(""));
10var_dump(imap_utf8_to_mutf7(1));
11var_dump(imap_utf8_to_mutf7(array(1,2)));
12var_dump(imap_utf8_to_mutf7("täst"));
13
14echo "Done\n";
15?>
16--EXPECTF--
17string(0) ""
18string(1) "1"
19
20Warning: imap_utf8_to_mutf7() expects parameter 1 to be string, array given in %s on line %d
21NULL
22string(8) "t&AOQ-st"
23Done
24