Index: /branches/version-2_11-dev/test/require.php
===================================================================
--- /branches/version-2_11-dev/test/require.php	(revision 20764)
+++ /branches/version-2_11-dev/test/require.php	(revision 20841)
@@ -24,7 +24,7 @@
 // {{{ requires
 
-/** PHPUnit/Framework.php のパス(必ずフルパスで指定!) */
-require_once("/opt/local/lib/php/PHPUnit/Framework.php");
-
+/** PHPUnit が含まれる pear ライブラリのパス(必ずフルパスで指定!) */
+$pear_path = '/opt/local/lib/php';
 require_once(realpath(dirname(__FILE__)) . "/../html/require.php");
+set_include_path(get_include_path() . PATH_SEPARATOR . $pear_path);
 ?>
Index: /branches/version-2_11-dev/test/class/util/SC_Utils_Test.php
===================================================================
--- /branches/version-2_11-dev/test/class/util/SC_Utils_Test.php	(revision 20764)
+++ /branches/version-2_11-dev/test/class/util/SC_Utils_Test.php	(revision 20841)
@@ -24,5 +24,5 @@
 // {{{ requires
 require_once(realpath(dirname(__FILE__)) . '/../../require.php');
-require_once(realpath(dirname(__FILE__)) . '/../../../data/class/pages/LC_Page_Ex.php');
+require_once(realpath(dirname(__FILE__)) . '/../../../data/class/pages/LC_Page.php');
 
 /**
@@ -46,5 +46,5 @@
         $url = "http://www.example.jp/admin/index.php";
 
-        $expected = "http://www.example.jp/admin/index.php";
+        $expected = "http://www.example.jp:/admin/index.php";
         $actual = SC_Utils::getRealURL($url);
 
@@ -55,5 +55,5 @@
         $url = "http://www.example.jp/admin/../index.php";
 
-        $expected = "http://www.example.jp/index.php";
+        $expected = "http://www.example.jp:/index.php";
         $actual = SC_Utils::getRealURL($url);
 
@@ -64,5 +64,5 @@
         $url = "http://www.example.jp/admin/..///index.php";
 
-        $expected = "http://www.example.jp/index.php";
+        $expected = "http://www.example.jp:/index.php";
         $actual = SC_Utils::getRealURL($url);
 
@@ -73,5 +73,5 @@
         $url = "http://www.example.jp/admin/././../index.php";
 
-        $expected = "http://www.example.jp/index.php";
+        $expected = "http://www.example.jp:/index.php";
         $actual = SC_Utils::getRealURL($url);
 
@@ -118,4 +118,30 @@
         $this->assertFalse(SC_Utils::isBlank($zero, false));
     }
+
+    function testIsAbsoluteRealPath() {
+        // for *NIX
+        if (strpos(PHP_OS, 'WIN') === false) {
+            $unix_absolute = '/usr/local';
+            $this->assertTrue(SC_Utils::isAbsoluteRealPath($unix_absolute));
+
+            $relative = '../foo/bar';
+            $this->assertFalse(SC_Utils::isAbsoluteRealPath($relative));
+        }
+        // for Win
+        else {
+            $win_absolute = 'C:\Windows\system32';
+            $this->assertTrue(SC_Utils::isAbsoluteRealPath($win_absolute));
+
+            $win_absolute = 'C:/Windows/system32';
+            $this->assertTrue(SC_Utils::isAbsoluteRealPath($win_absolute));
+
+            $relative = '..\\foo\\bar';
+            $this->assertFalse(SC_Utils::isAbsoluteRealPath($relative));
+
+        }
+
+        $empty = '';
+        $this->assertFalse(SC_Utils::isAbsoluteRealPath($empty));
+    }
 }
 ?>
Index: /branches/version-2_11-dev/data/class/util/SC_Utils.php
===================================================================
--- /branches/version-2_11-dev/data/class/util/SC_Utils.php	(revision 20764)
+++ /branches/version-2_11-dev/data/class/util/SC_Utils.php	(revision 20841)
@@ -2194,4 +2194,21 @@
         }
     }
+
+    /**
+     * パスが絶対パスかどうかをチェックする.
+     *
+     * 引数のパスが絶対パスの場合は true を返す.
+     * この関数は, パスの存在チェックを行なわないため注意すること.
+     *
+     * @param string チェック対象のパス
+     * @return boolean 絶対パスの場合 true
+     */
+    function isAbsoluteRealPath($realpath) {
+        if (strpos(PHP_OS, 'WIN') === false) {
+            return (substr($realpath, 0, 1) == '/');
+        } else {
+            return preg_match('/^[a-zA-Z]:(\\\|\/)/', $realpath) ? true : false;
+        }
+    }
 }
 ?>
Index: /branches/version-2_11-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php
===================================================================
--- /branches/version-2_11-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php	(revision 20813)
+++ /branches/version-2_11-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php	(revision 20841)
@@ -98,5 +98,5 @@
 
             $bloc_file = $arrBlocData[0]['tpl_path'];
-            if (substr($bloc_file, 0, 1) == '/') {
+            if (SC_Utils_Ex::isAbsoluteRealPath($bloc_file)) {
                 $tplPath = $bloc_file;
             } else {
Index: /branches/version-2_11-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php
===================================================================
--- /branches/version-2_11-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php	(revision 20810)
+++ /branches/version-2_11-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php	(revision 20841)
@@ -61,5 +61,5 @@
      */
     function setTplMainpage($bloc_file) {
-        if (substr($bloc_file, 0, 1) == '/') {
+        if (SC_Utils_Ex::isAbsoluteRealPath($bloc_file)) {
             $this->tpl_mainpage = $bloc_file;
         } else {
