? boost-686722.patch
Index: boost.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.admin.inc,v
retrieving revision 1.1.2.1.2.3.2.127
diff -u -p -r1.1.2.1.2.3.2.127 boost.admin.inc
--- boost.admin.inc	23 Jan 2010 22:11:59 -0000	1.1.2.1.2.3.2.127
+++ boost.admin.inc	24 Jan 2010 02:15:19 -0000
@@ -97,6 +97,7 @@ function boost_admin_boost_performance_p
     '#default_value' => variable_get('page_compression', TRUE),
     '#options' => array(t('Disabled'), t('Enabled')),
     '#description' => t("By default, Drupal compresses the pages it caches in order to save bandwidth and improve download times. This option should be disabled when using a webserver that performs compression."),
+    '#disabled' => !function_exists('gzencode'),
   );
   $form['boost']['boost_cache_lifetime'] = array(
     '#type' => 'select',
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.291
diff -u -p -r1.3.2.2.2.5.2.291 boost.module
--- boost.module	23 Jan 2010 22:16:49 -0000	1.3.2.2.2.5.2.291
+++ boost.module	24 Jan 2010 02:15:21 -0000
@@ -12,7 +12,7 @@
 define('BOOST_TIME',                 time());
 define('BOOST_MAX_TIMESTAMP',        variable_get('boost_max_timestamp', BOOST_TIME));
 define('BOOST_ENABLED',              variable_get('boost_enabled', CACHE_NORMAL));
-define('BOOST_GZIP',                 variable_get('page_compression', TRUE));
+define('BOOST_GZIP',                 function_exists('gzencode') ? variable_get('page_compression', TRUE) : FALSE);
 
 // This cookie is set for all authenticated users, so that they can be
 // excluded from caching (or in the future get a user-specific cached page):
