Index: src/wp-includes/functions.php
===================================================================
--- src/wp-includes/functions.php	(revision 29328)
+++ src/wp-includes/functions.php	(working copy)
@@ -3398,21 +3398,22 @@
  * @param bool   $default Optional. The default return value if the module is not found. Default false.
  * @return bool Whether the specified module is loaded.
  */
-function apache_mod_loaded($mod, $default = false) {
+function apache_mod_loaded( $mod, $default = false ) {
 	global $is_apache;
 
 	if ( !$is_apache )
 		return false;
 
-	if ( function_exists('apache_get_modules') ) {
+	$disabled = ini_get( 'disable_functions' );
+	if ( function_exists( 'apache_get_modules' ) ) {
 		$mods = apache_get_modules();
-		if ( in_array($mod, $mods) )
+		if ( in_array( $mod, $mods ) )
 			return true;
-	} elseif ( function_exists('phpinfo') ) {
+	} elseif ( function_exists( 'phpinfo' ) && strpos( $disabled, 'phpinfo' ) === false ) {
 			ob_start();
-			phpinfo(8);
+			phpinfo( 8 );
 			$phpinfo = ob_get_clean();
-			if ( false !== strpos($phpinfo, $mod) )
+			if ( false !== strpos( $phpinfo, $mod ) )
 				return true;
 	}
 	return $default;
