Skip to content

Commit

Permalink
Merge branch '7.1' into 7.2
Browse files Browse the repository at this point in the history
* 7.1:
  [Validator] Fix 58691 (missing plural-options in serbian language translation)
  profiler form data collector extart value property if it is setted
  [Process] Fix escaping /X arguments on Windows
  fix the constant being used
  fix the path separator being used
  fix the directory separator being used
  ignore case of built-in cmd.exe commands
  [Process] Improve test cleanup by unlinking in a `finally` block
  [Notifier] Fix test with hard coded date in `SmsboxTransportTest`
  [Process] Return built-in cmd.exe commands directly in ExecutableFinder
  Re-add missing Profiler shortcuts on Profiler homepage
  [Config] Handle Phar absolute path in `FileLocator`
  [Runtime] Remove unused `SKIPIF` from `dotenv_overload.phpt`
  • Loading branch information
nicolas-grekas committed Nov 4, 2024
2 parents 75cfe49 + dc373a5 commit bcd3c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions FileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ private function isAbsolutePath(string $file): bool
&& ('\\' === $file[2] || '/' === $file[2])
)
|| parse_url($file, \PHP_URL_SCHEME)
|| str_starts_with($file, 'phar:///') // "parse_url()" doesn't handle absolute phar path, despite being valid
) {
return true;
}
Expand Down
1 change: 1 addition & 0 deletions Tests/FileLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static function getIsAbsolutePathTests(): array
['\\server\\foo.xml'],
['https://server/foo.xml'],
['phar://server/foo.xml'],
['phar:///server/foo.xml'],
];
}

Expand Down

0 comments on commit bcd3c4a

Please sign in to comment.