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