? sapi.patch
? sapi2.patch
Index: drush.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/drush.php,v
retrieving revision 1.51
diff -u -p -r1.51 drush.php
--- drush.php	26 Mar 2009 01:41:21 -0000	1.51
+++ drush.php	29 Mar 2009 18:05:54 -0000
@@ -36,11 +36,7 @@ exit(drush_main());
  *   and false if being run through cgi or mod_php.
  */
 function drush_verify_cli() {
-  if (php_sapi_name() == 'cgi') {
-    return (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0);
-  }
-
-  return (php_sapi_name() == 'cli');
+  return (php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0));
 }
 
 /**
