Skip to content

Conversation

@johnpbloch
Copy link

This is related to (and required for) wp-cli/wp-cli#5962

This will set an extra constant that stores the outer filesystem's filename. When that filename doesn't match with the phar's internal filename (wp-cli.phar), the phar can't find internal files that use __DIR__ for a reference point to the file.

@johnpbloch johnpbloch requested a review from a team as a code owner July 13, 2024 19:07
Co-authored-by: Pascal Birchler <pascal.birchler@gmail.com>
@schlessera
Copy link
Member

I don't think this approach is ideal. It is still very hacky and it has issues with multibyte strings in filesystems.

I think this needs to be solved using https://www.php.net/manual/en/phar.running.php in the correct way. I'll have a stab at it...

@schlessera
Copy link
Member

Went with a different approach => #752

Thanks for looking into this, @johnpbloch !

@schlessera schlessera closed this May 6, 2025
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.

3 participants