Index: wp-includes/functions.php
===================================================================
--- wp-includes/functions.php	(revision 12659)
+++ wp-includes/functions.php	(working copy)
@@ -3091,17 +3091,16 @@
 	if ( !$is_apache )
 		return false;
 
-	if ( function_exists('apache_get_modules') ) {
-		$mods = apache_get_modules();
-		if ( in_array($mod, $mods) )
-			return true;
-	} elseif ( function_exists('phpinfo') ) {
-			ob_start();
-			phpinfo(8);
-			$phpinfo = ob_get_clean();
-			if ( false !== strpos($phpinfo, $mod) )
-				return true;
-	}
+	if ( function_exists('apache_get_modules') )
+		return in_array($mod, apache_get_modules());
+	
+	ob_start();
+	phpinfo(INFO_MODULES);
+	$phpinfo = ob_get_clean();
+
+	if ( false !== strpos($phpinfo, $mod) )
+		return true;
+
 	return $default;
 }
 
