Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  [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
  [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 5c61527 + 4e55e7e commit dc373a5
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 dc373a5

Please sign in to comment.