Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP bug #77153
ext/imap/php_imap.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 5fa32df2bc..33f13e50a8 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -872,6 +872,9 @@ PHP_MINIT_FUNCTION(imap)
mail_parameters(NIL, SET_WRITETIMEOUT, (void *) FG(default_socket_timeout));
mail_parameters(NIL, SET_CLOSETIMEOUT, (void *) FG(default_socket_timeout));
+ /* disable rsh globally */
+ mail_parameters(NIL, SET_RSHTIMEOUT, 0);
+
/* timeout constants */
REGISTER_LONG_CONSTANT("IMAP_OPENTIMEOUT", 1, CONST_PERSISTENT | CONST_CS);
REGISTER_LONG_CONSTANT("IMAP_READTIMEOUT", 2, CONST_PERSISTENT | CONST_CS);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.