Skip to content

Commit 0843aaa

Browse files
committed
Fixed #294
1 parent 68ad16a commit 0843aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpFastCache/Core/PathSeekerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait PathSeekerTrait
3232
*/
3333
public function getPath($getBasePath = false)
3434
{
35-
$tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
35+
$tmp_dir = rtrim(ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(), '\\/') . DIRECTORY_SEPARATOR . 'phpfastcache';
3636

3737
if (!isset($this->config[ 'path' ]) || $this->config[ 'path' ] == '') {
3838
if (self::isPHPModule()) {

0 commit comments

Comments
 (0)