File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / mail / mail_skipif.inc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 5 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_17p0, v5_3_10, HEAD
php

<?php
extension_loaded('imap') or die('skip imap extension not available in this build');
 
// Change these to make tests run successfully
$mailbox  = '{localhost}';
$username = 'webmaster@example.com';
$password = 'p4ssw0rd';
$options = OP_HALFOPEN; // this should be enough to verify server present
$retries = 0; // dont retry connect on failure

$mbox = imap_open($mailbox, $username, $password, $options, $retries);
if (!$mbox) {
	die("skip could not connect to mailbox $mailbox");
}
imap_close($mbox);
?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>