Skip to content

Commit d74cc25

Browse files
coverage
1 parent 165aaa4 commit d74cc25

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bootstrap.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,17 @@ function imap2_close($imap, $flags = 0)
253253
if (!function_exists('imap_timeout')) {
254254
function imap_timeout($timeoutType, $timeout = -1)
255255
{
256-
return Connection::close($timeoutType, $timeout);
256+
return imap2_timeout($timeoutType, $timeout);
257257
}
258258
}
259259
if (!function_exists('imap2_timeout')) {
260260
function imap2_timeout($timeoutType, $timeout = -1)
261261
{
262-
return Connection::close($timeoutType, $timeout);
262+
if (IMAP2_RETROFIT_MODE) {
263+
imap_timeout($timeoutType, $timeout);
264+
}
265+
266+
return Connection::timeout($timeoutType, $timeout);
263267
}
264268
}
265269

0 commit comments

Comments
 (0)