https://bugzilla.wikimedia.org/show_bug.cgi?id=21403
--- Comment #4 from Hyun-Joon, Kim <[email protected]> 2009-11-04 13:50:18 UTC --- (In reply to comment #2) > It seems that there is a conflict between PHP's memcached extension > (http://www.php.net/manual/en/book.memcached.php) and our memcached class > (includes/memcached-client.php). > Yes, I saw PHP manual about memcached extensions, and the memcached:__construct() accepts a single string variable. But MediaWiki's Cache routine is not. Line from 53 to 67 in includes/ObjectCache.php ---- 53 if ( $type == CACHE_MEMCACHED ) { 54 if ( !array_key_exists( CACHE_MEMCACHED, $wgCaches ) ) { 55 if ( !class_exists( 'MemCachedClientforWiki' ) ) { 56 class MemCachedClientforWiki extends memcached { 57 function _debugprint( $text ) { 58 wfDebug( "memcached: $text" ); 59 } 60 } 61 } 62 $wgCaches[CACHE_MEMCACHED] = new MemCachedClientforWiki( 63 array('persistant' => $wgMemCachedPersistent, 'compress_threshold' => 1500 ) ); 64 $wgCaches[CACHE_MEMCACHED]->set_servers( $wgMemCachedServers ); 65 $wgCaches[CACHE_MEMCACHED]->set_debug( $wgMemCachedDebug ); 66 } 67 $cache =& $wgCaches[CACHE_MEMCACHED]; ------ At line 62-63, the codes is contructing memcache persistence connection. But the argument is array, not string. I think that if the argument is not string, PHP can not parse codes, even if all array's elements are string. Do you have any solution to it? I edited some codes for fixing, but still not work. My PHP is poor... :(.. Thanks for reading and review my bug, Alexandre. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
