1--TEST-- 2imap_undelete() incorrect parameter count 3--CREDITS-- 4Olivier Doucet 5--SKIPIF-- 6<?php 7require_once(__DIR__.'/skipif.inc'); 8?> 9--FILE-- 10<?php 11echo "Checking with no parameters\n"; 12imap_undelete(); 13 14echo "Checking with incorrect parameter type\n"; 15imap_undelete(''); 16imap_undelete(false); 17 18require_once(__DIR__.'/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 22imap_undelete($stream_id); 23 24imap_close($stream_id); 25?> 26--EXPECTF-- 27Checking with no parameters 28 29Warning: imap_undelete() expects at least 2 parameters, 0 given in %s on line %d 30Checking with incorrect parameter type 31 32Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d 33 34Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d 35 36Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d 37