I've spent a bunch of time tracking down this issue (which was
intermittent at best) and have identified the problem and have a patch
for the solution.
Details here: https://bugs.php.net/bug.php?id=60164
The attached patch is against trunk, PHP_5_4, & PHP_5_3.
Seeing as though I've supplied patches in the past (see release notes),
that I've spend significant time on understanding the Phar extension,
and am able to fix issues there now, I'd like to be the one to commit
this patch if internals is in agreement.
So, how about it?