[php-src] Issue #24231: "Cannot access phar file entry" with long file names (longer than 100 characters)
| From: | bohwaz | Date: | Fri, 09 Oct 2026 21:29:53 +0000 |
| Subject: | [php-src] Issue #24231: "Cannot access phar file entry" with long file names (longer than 100 characters) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-252959@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24231
Author: 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
```plain
All
```
### Operating System
_No response_