Skip to content

Keep the leading slash of absolute paths behind stream wrappers - #48

Merged
Seldaek merged 1 commit into
composer:mainfrom
nicolas-grekas:stream-wrapper-absolute-path
Sep 25, 2026
Merged

Seldaek merged 1 commit into
composer:mainfrom
nicolas-grekas:stream-wrapper-absolute-path

Conversation

@nicolas-grekas

Copy link
Copy Markdown
Contributor

phar:///path/to/lib.phar/src/Foo.php was turned into phar://path/to/lib.phar/src/Foo.php, which phar resolves relative to the current directory, so scanning an archive referenced by an absolute path failed with File at "phar://path/..." does not exist. The regex that collapses repeated slashes skipped the one right after : but still matched the next two.

@Seldaek
Seldaek merged commit 4800abd into composer:main Sep 25, 2026
14 checks passed
@Seldaek

Seldaek commented Sep 25, 2026

Copy link
Copy Markdown
Member

Thanks

@nicolas-grekas
nicolas-grekas deleted the stream-wrapper-absolute-path branch September 25, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants