From 0571bcd4955840d033407d7daee9739aa609f457 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 21 Jan 2008 03:25:57 +0000 Subject: [PATCH] * Remove debugging code (errant var_dump) * Mark DBA cache "not recommended" * Fix warning in escapePHPstring --- config/index.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config/index.php b/config/index.php index 781a356da1..bed1e0d78a 100644 --- a/config/index.php +++ b/config/index.php @@ -1233,7 +1233,7 @@ if( count( $errs ) ) { } if ( $conf->dba ) { echo "
  • "; - aField( $conf, "Shm", "DBA", "radio", "dba" ); + aField( $conf, "Shm", "DBA (not recommended)", "radio", "dba" ); echo "
  • "; } ?> @@ -1247,7 +1247,9 @@ if( count( $errs ) ) {

    MediaWiki can also detect and support eAccelerator, Turck MMCache, APC, and XCache, but these should not be used if the wiki will be running on multiple application servers. - You can also use DBA for storing object cache in the file. +

    + DBA (Berkeley-style DB) is generally slower than using no cache at all, and is only + recommended for testing.

    @@ -1478,6 +1480,9 @@ EOT; function escapePhpString( $string ) { + if ( is_array( $string ) || is_object( $string ) ) { + return false; + } return strtr( $string, array( "\n" => "\\n", @@ -1829,7 +1834,6 @@ function testMemcachedServer( $server ) { } if ( !$errstr && count( $hostport ) != 2 ) { $errstr = 'Please specify host and port'; - var_dump( $hostport ); } if ( !$errstr ) { list( $host, $port ) = $hostport; -- 2.20.1