however it sounds like a bug in the implementation
phar.c:720
if (4 != php_stream_read(fp, buffer, 4)) {
MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at manifest length)")
}
that code will fail if non LF eol are used. Or does phar supports only LF?