php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #63529
Patch enable_compression_add_new_option revision 2014-08-28 14:01 UTC by phpbugs2012 at joern dot heissler dot de
Patch enable-compression.patch revision 2012-11-15 16:04 UTC by trevor at blubolt dot com

Patch enable-compression.patch for ssh2 Bug #63529

Patch version 2012-11-15 16:04 UTC

Return to Bug #63529 | Download this patch
Patch Revisions:

Developer: trevor@blubolt.com

Index: php-ssh2-0.11.3/ssh2-0.11.3/ssh2.c
===================================================================
--- php-ssh2-0.11.3.orig/ssh2-0.11.3/ssh2.c	2012-11-15 15:05:04.965196000 +0000
+++ php-ssh2-0.11.3/ssh2-0.11.3/ssh2.c	2012-11-15 15:06:13.997196509 +0000
@@ -362,6 +362,9 @@
 	}
 	libssh2_banner_set(session, LIBSSH2_SSH_DEFAULT_BANNER " PHP");
 
+	/* Enable compression */
+ 	libssh2_session_flag(session, LIBSSH2_FLAG_COMPRESS, 1);
+
 	/* Override method preferences */
 	if (methods) {
 		zval **container;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC