Return to mail_skipif.inc CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / mail |
1.1 misho 1: <?php 2: extension_loaded('imap') or die('skip imap extension not available in this build'); 3: 4: // Change these to make tests run successfully 5: $mailbox = '{localhost}'; 6: $username = 'webmaster@example.com'; 7: $password = 'p4ssw0rd'; 8: $options = OP_HALFOPEN; // this should be enough to verify server present 9: $retries = 0; // dont retry connect on failure 10: 11: $mbox = imap_open($mailbox, $username, $password, $options, $retries); 12: if (!$mbox) { 13: die("skip could not connect to mailbox $mailbox"); 14: } 15: imap_close($mbox); 16: ?>