a tiny mvc framework for php using php-activerecord
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix default port for memcached and namespace option

+3 -3
+1 -1
lib/php-activerecord/lib/Cache.php
··· 74 74 75 75 private static function get_namespace() 76 76 { 77 - return !isset(static::$options['namespace']) ? "" : static::$options['namespace'] . "::"; 77 + return (isset(static::$options['namespace']) && strlen(static::$options['namespace']) > 0) ? (static::$options['namespace'] . "::") : ""; 78 78 } 79 79 } 80 80 ?>
+1 -1
lib/php-activerecord/lib/cache/Memcache.php
··· 3 3 4 4 class Memcache 5 5 { 6 - const DEFAULT_PORT = 11212; 6 + const DEFAULT_PORT = 11211; 7 7 8 8 private $memcache; 9 9
+1 -1
lib/php-activerecord/test/CacheTest.php
··· 69 69 { 70 70 Cache::$options['expire'] = 1; 71 71 $this->cache_get(); 72 - sleep(1); 72 + sleep(2); 73 73 74 74 $this->assert_same(false, Cache::$adapter->read("1337")); 75 75 }