Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interceptors fail using Phar archives using internal aliases #11

Closed
ohader opened this issue Jan 19, 2019 · 0 comments · Fixed by #12
Closed

Interceptors fail using Phar archives using internal aliases #11

ohader opened this issue Jan 19, 2019 · 0 comments · Fixed by #12
Labels
bug Something isn't working

Comments

@ohader
Copy link
Member

ohader commented Jan 19, 2019

Based on

Description

Helper::determineBaseFile($path) is only capable of resolving files that are actually available in the system's file system. Since Phar allows to set internal alias names - in order to be used inside of Phar archives only - the real system path cannot be resolved any more.

Alias names either could be defined using

  • Phar::setAlias($alias) - persisted to Phar Manifest
  • Phar::mapPhar($alias) - only in-memory during runtime and executed in Phar's Stub section

Inside Phar archives Phar::running could be used, but this won't work "outside", e.g. in PharStreamWrapper or interceptors (http://php.net/manual/en/phar.running.php) - thus, not an option here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant