We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b4c90c + 55bbe03 commit b1bfaf6Copy full SHA for b1bfaf6
src/phpFastCache/Util/Directory.php
@@ -132,6 +132,8 @@ public static function getAbsolutePath($path)
132
$absolutes[] = $part;
133
}
134
135
- return implode(DIRECTORY_SEPARATOR, $absolutes);
+ $__FILE__ = __FILE__; // allows to dereference char
136
+ $prefix = $__FILE__[0] === DIRECTORY_SEPARATOR ? DIRECTORY_SEPARATOR : '';
137
+ return $prefix . implode(DIRECTORY_SEPARATOR, $absolutes);
138
139
0 commit comments