title: How to include paths to PHAR archives in the open-basedir directive?
body: <p>I'm trying to use <a href="http://www.getcomposer.org" rel="nofollow">composer</a> on my local development machine, and it always fails when trying to copy something from the PHAR archive:</p>
  
  <pre><code>[ErrorException]
  copy(): open_basedir restriction in effect. File(phar://E:/xampp/php/composer/composer.phar/src/Composer/Autoload/ClassLoader.php) is not within the allowed path(s)
  </code></pre>
  
  <p><strong>E:\xampp\php\composer</strong> is included in the <strong>open_basedir</strong> directive, reading and writing files in that location works fine, only accessing files in the PHAR archive doesn't work. I've tried adding the following paths:</p>
  
  <pre><code>E:\xampp\php\composer\composer.phar\src\
  phar://E:/xampp/php/composer/
  phar://E:/xampp/php/composer/composer.phar/src/
  phar://E:/xampp/php/composer/composer.phar/src/Composer/Autoload/
  </code></pre>
  
  <p>but none of it helps, it's still failing with the same error.</p>
  
  <p>Is there a special way to include paths to PHAR archives? Is it possible at all? Should it be neccessary anway? Might this have something to do with this bug: <a href="https://bugs.php.net/bug.php?id=64634" rel="nofollow">https://bugs.php.net/bug.php?id=64634</a> ?</p>
  
  <p>My system: Windows 7 x64, XAMPP 1.8.1, Apache 2.4.3, PHP 5.4.7</p>
  
  <p><strong>Update:</strong> Tried the latest stable PHP 5.4.14 too, same problem.</p>