Skip to content

Commit 7ddf1bb

Browse files
committed
Merge branch 'final' into v4
2 parents 348f765 + 448c49c commit 7ddf1bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ $products = CacheManager::get($key);
133133
For curious developpers, there is a lot of others available examples [here](https://github.com/khoaofgod/phpFastCache/tree/final/examples).
134134

135135
#### :boom: phpFastCache support
136-
Found an issue or had an idea ? Come here [here](https://github.com/PHPSocialNetwork/phpfastcache/issues) and let you know !
136+
Found an issue or had an idea ? Come [here](https://github.com/PHPSocialNetwork/phpfastcache/issues) and let you know !

src/phpFastCache/Core/phpFastCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static function getAutoClass($config)
156156
*/
157157
public static function getPath($skip_create_path = false, $config)
158158
{
159-
$tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
159+
$tmp_dir = rtrim(ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(), '\\/') . DIRECTORY_SEPARATOR . 'phpfastcache';
160160

161161
if (!isset($config[ 'path' ]) || $config[ 'path' ] == '') {
162162
if (self::isPHPModule()) {
@@ -191,7 +191,7 @@ public static function getPath($skip_create_path = false, $config)
191191

192192
$securityKey = self::cleanFileName($securityKey);
193193

194-
$full_path = rtrim($path,'/') . '/' . $securityKey;
194+
$full_path = rtrim($path, '\\/') . DIRECTORY_SEPARATOR . $securityKey;
195195
$full_pathx = md5($full_path);
196196

197197

0 commit comments

Comments
 (0)