2 imap_body() incorrect parameter count
8 require_once(dirname(__FILE__).'/skipif.inc');
12 echo "Checking with no parameters\n";
15 echo "Checking with incorrect parameter type\n";
18 require_once(dirname(__FILE__).'/imap_include.inc');
19 $stream_id = imap_open($default_mailbox, $username, $password) or
20 die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
21 imap_body($stream_id);
22 imap_body($stream_id,-1);
23 imap_body($stream_id,1,-1);
26 var_dump(imap_body($stream_id, 999, FT_UID));
28 imap_close($stream_id);
32 Checking with no parameters
34 Warning: imap_body() expects at least 2 parameters, 0 given in %s on line %d
35 Checking with incorrect parameter type
37 Warning: imap_body() expects at least 2 parameters, 1 given in %s on line %d
39 Warning: imap_body() expects at least 2 parameters, 1 given in %s on line %d
41 Warning: imap_body() expects at least 2 parameters, 1 given in %s on line %d
43 Warning: imap_body(): Bad message number in %s on line %d
45 Warning: imap_body(): invalid value for the options parameter in %s on line %d
47 Warning: imap_body(): Bad message number in %s on line %d