Fix unpacking tar files in PHP5.5
Merge pull request #3672 from wilsonge/patch-26

Fix unpacking tar files in PHP5.5