1--TEST--
2imap_timeout() function : basic functionality
3--CREDITS--
4Olivier Doucet
5--EXTENSIONS--
6imap
7--SKIPIF--
8<?php
9require_once(__DIR__.'/setup/skipif.inc');
10?>
11--FILE--
12<?php
13
14echo "GET values:\n";
15var_dump(imap_timeout(IMAP_OPENTIMEOUT));
16var_dump(imap_timeout(IMAP_READTIMEOUT));
17var_dump(imap_timeout(IMAP_WRITETIMEOUT));
18var_dump(imap_timeout(IMAP_CLOSETIMEOUT));
19
20echo "SET values:\n";
21var_dump(imap_timeout(IMAP_OPENTIMEOUT, 10));
22var_dump(imap_timeout(IMAP_READTIMEOUT, 10));
23var_dump(imap_timeout(IMAP_WRITETIMEOUT, 10));
24
25//IMAP_CLOSETIMEOUT not implemented
26//var_dump(imap_timeout(IMAP_CLOSETIMEOUT, 10));
27
28echo "CHECK values:\n";
29var_dump(imap_timeout(IMAP_OPENTIMEOUT));
30var_dump(imap_timeout(IMAP_READTIMEOUT));
31var_dump(imap_timeout(IMAP_WRITETIMEOUT));
32
33//IMAP_CLOSETIMEOUT not implemented
34//var_dump(imap_timeout(IMAP_CLOSETIMEOUT));
35
36?>
37--EXPECTF--
38GET values:
39int(%d)
40int(%d)
41int(%d)
42int(%d)
43SET values:
44bool(true)
45bool(true)
46bool(true)
47CHECK values:
48int(10)
49int(10)
50int(10)
51