PharData extractTo method failed to extract .tar.gz on linux environment
<p>I would like to extract .tar.gz file into the particular folder. I have used cURL to download the .tar.gz file from MailChimp batch operation. I have used below code to extract tar file.</p>

<pre><code>$phar = new \PharData('upload/test.tar.gz');
  $phar-&gt;extractTo('upload/',null, true);
</code></pre>

<p>It is working on windows environment. But on Linux(Ubuntu), I got below error when to run above code.</p>

<pre><code> Uncaught exception 'PharException' with message 'Extraction from phar "upload/test.tar" failed: Cannot extract ".", internal error'
</code></pre>

<p>I have already set default apache user and group permission for upload folder.</p>

<pre><code>  sudo chown -R www-data:www-data upload/
</code></pre>

<p>PHP Version: 5.6.24</p>

<p>I have attach sample .tar.gz file: <a href="http://www.simbanic.com/_projects/test/05c902076e.tar.gz" rel="nofollow">http://www.simbanic.com/_projects/test/05c902076e.tar.gz</a></p>