* finish task #2292.

This commit is contained in:
wangyidong
2015-09-06 14:49:35 +08:00
parent 08f665a20f
commit 7871037e38
2 changed files with 4 additions and 10 deletions
+4 -8
View File
@@ -133,14 +133,10 @@ class installModel extends model
*/
public function getSessionSavePath()
{
if(preg_match('/WIN/i', PHP_OS))
{
$result['path'] = preg_replace("/\d;/", '', session_save_path());
$result['exists'] = is_dir($result['path']);
$result['writable'] = is_writable($result['path']);
return $result;
}
return array('path' => '/tmp', 'exists' => true, 'writable' => true);
$result['path'] = preg_replace("/\d;/", '', session_save_path());
$result['exists'] = is_dir($result['path']);
$result['writable'] = is_writable($result['path']);
return $result;
}
/**