mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 07:15:38 +08:00
Add ext-shmop, fix path slashes
This commit is contained in:
@@ -481,7 +481,7 @@ class FileSystem
|
||||
public static function fullpath(string $path, string $relative_path_base): string
|
||||
{
|
||||
if (FileSystem::isRelativePath($path)) {
|
||||
$path = $relative_path_base . DIRECTORY_SEPARATOR . $path;
|
||||
$path = rtrim($relative_path_base, '/') . DIRECTORY_SEPARATOR . $path;
|
||||
}
|
||||
if (!file_exists($path)) {
|
||||
throw new FileSystemException("Path does not exist: {$path}");
|
||||
|
||||
Reference in New Issue
Block a user