Skip to content

"Cannot access phar file entry" with long file names (longer than 100 characters) #24231

Description

@bohwaz

Description

Reporting here as it caught me by surprise: PharData doesn't support TAR filenames longer than 100 characters.

If you have such a file you will get this error:

Cannot access phar file entry '...file path...'

There is no other solution other than accessing the TAR archive differently or having shorter filenames. This is part of the original TAR format. Only GNU tar supports more than 100 characters and this extension is not supposed by PharData.

More details can be found here: https://stackoverflow.com/questions/24800217/phardata-limitation-of-file-name-length

PHP Version

All

Operating System

No response

Activity

  1. bohwaz commented on Oct 9, 2026

    @bohwaz
    ContributorAuthor

    Closing, this issue was just for helping others who might stumble on this strange error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions