-- modifier
--- explode (文字列を,ある文字で分割して配列に変換する)
-- Filterは一貫してプラグインを使うように変更したため、add-project時の app/filter ディレクトリを削除。
+- Ethna_Session#isAnonymous メソッドが状態を正しく取得できない場合があるバグを修正(thanks:longkey1)
+-- http://ml.ethna.jp/pipermail/users/2008-February/000899.html
*** bug fix
session_start();
$_SESSION['REMOTE_ADDR'] = $_SERVER['REMOTE_ADDR'];
$_SESSION['__anonymous__'] = $anonymous;
+ $this->anonymous = $anonymous;
$this->session_start = true;
return true;
--- /dev/null
+<?php
+/**
+ * Ethna_Session_Test.php
+ *
+ * @author Yoshinari Takaoka <takaoka@beatcraft.com>
+ * @version $Id$
+ */
+
+//{{{ Ethna_Session_Test
+/**
+ * Test Case For Ethna_Session
+ *
+ * @access public
+ */
+class Ethna_Session_Test extends Ethna_UnitTestBase
+{
+ var $local_session;
+
+ function setUp()
+ {
+ $logger =& $this->ctl->getLogger();
+ $this->local_session =& new Ethna_Session("ETHNA_TEST", "/tmp", $logger);
+ }
+
+ function tearDown()
+ {
+ @$this->local_session->destroy();
+ $this->local_session = NULL;
+ }
+
+ function test_isAnonymous()
+ {
+ // suppress header already sent error.
+ @$this->local_session->start(0, true);
+ $this->assertTrue($this->local_session->isAnonymous());
+ }
+}
+
+?>