Last modified: 2010-05-15 16:03:18 UTC
/config/index.php : $conf->eaccel = function_exists( 'eaccelerator_get' ); if ( $conf->eaccel ) { $conf->turck = 'eaccelerator'; print "<li><a href=\"http://eaccelerator.sourceforge.net/\">eAccelerator</a> installed</li>\n"; } it's wrong, because function 'eaccelerator_get' disabled. For more information see http://adminuser.wordpress.com/2008/01/15/fatal-error-unknown-function-eaccelerator_get-in-somefile/
Seeing as the MW wrapper for eAccelerator (eAccelBagOStuff, defined in BagOStuff.php) uses eaccelerator_get(), I think this is a good choice. We don't want to configure that it's ok, only to later find out we can't use it (although the cache setup handles it too :) Is there a function we should be using instead of eaccelerator_get(), since it does in fact seem to be disabled by default?
Our code is correct, if the object cache is disabled then we can't use it. And note that it was disabled for good reason, if MediaWiki was configured to use eaccelerator as an object cache, it could trigger the DoS referred to in http://eaccelerator.net/ticket/37