Index: branches/version-2_13_3/data/class/util/SC_Utils.php
===================================================================
--- branches/version-2_13_3/data/class/util/SC_Utils.php	(revision 23609)
+++ branches/version-2_13_3/data/class/util/SC_Utils.php	(revision 23663)
@@ -1828,19 +1828,14 @@
      * この関数は, パスの存在チェックを行なわないため注意すること.
      *
-     * use File_Util::isAbsolute
-     * http://pear.php.net/package/File_Util/
-     *
-     * @param string $path チェック対象のパス
+     * @param string $realpath チェック対象のパス
      * @return boolean 絶対パスの場合 true
      */
-    public static function isAbsoluteRealPath($path)
-    {
-        if (preg_match('/(?:\/|\\\)\.\.(?=\/|$)/', $path)) {
-            return false;
-        }
-        if (DIRECTORY_SEPARATOR == '\\') {
-            return (($path{0} == '/') ||  preg_match('/^[a-zA-Z]:(\\\|\/)/', $path));
-        }
-        return ($path{0} == '/') || ($path{0} == '~');
+    public static function isAbsoluteRealPath($realpath)
+    {
+        if (strpos(PHP_OS, 'WIN') === false) {
+            return substr($realpath, 0, 1) == '/';
+        } else {
+            return preg_match('/^[a-zA-Z]:(\\\|\/)/', $realpath) ? true : false;
+        }
     }
 
@@ -1848,13 +1843,20 @@
      * ディレクトリを再帰的に作成する.
      *
+     * mkdir 関数の $recursive パラメーターを PHP4 でサポートする.
+     *
+     * @param  string  $pathname ディレクトリのパス
      * @param  integer $mode     作成するディレクトリのパーミッション
-     * @param string $path
      * @return boolean 作成に成功した場合 true; 失敗した場合 false
      * @see http://jp.php.net/mkdir
      */
-    public static function recursiveMkdir($path, $mode = 0777)
-    {
-        // Windows環境ではmodeは効かない
-        return mkdir($path, $mode, true);
+    public static function recursiveMkdir($pathname, $mode = 0777)
+    {
+        /*
+         * SC_Utils_Ex への再帰は無限ループやメモリリークの懸念
+         * 自クラスへ再帰する.
+         */
+        is_dir(dirname($pathname)) || SC_Utils::recursiveMkdir(dirname($pathname), $mode);
+
+        return is_dir($pathname) || @mkdir($pathname, $mode);
     }
 
