title: Cannot run php from command line when use environment variable
body: <p>I have windows 8, and whenever I run php from the installed directory, then it works without a problem, but whenever I set the environment variable to that directory, and run <code>php --version</code>, then a win-8 bar appears:</p>
  
  <blockquote>
    <p>This app can't run on your PC<br/> To find a version for your PC,
    check with the software publisher</p>
  </blockquote>
  
  <p>Has anyone encountered a similar issue or found a solution for this?</p>
  
  <p>Attached below are the commands that i ran:</p>
  
  <pre><code>K:\Users\username&gt;php
  Access is denied.
  
  K:\Users\username&gt;php
  Access is denied.
  
  K:\Users\username&gt;php --version
  Access is denied.
  
  K:\Users\username&gt;F:/
  'F:/' is not recognized as an internal or external command,
  operable program or batch file.
  
  K:\Users\username&gt;F:
  
  F:\&gt;php
  Access is denied.
  
  F:\&gt;cd Program
  
  F:\Program&gt;cd php-5.5.6-x86 
  
  F:\Program\php-5.5.6-x86&gt;ls
  dev            iculx51.dll             libpq.dll         php.gif
  ext            icutest51.dll           libsasl.dll       php.ini-development
  extras         icutu51.dll             license.txt       php.ini-production
  glib-2.dll     icuuc51.dll             news.txt          php5.dll
  gmodule-2.dll  install.txt             phar.phar.bat     readme-redist-bins.txt
  icudt51.dll    libeay32.dll            pharcommand.phar  snapshot.txt
  icuin51.dll    libenchant.dll          php-cgi.exe       ssleay32.dll
  icuio51.dll    libenchant_ispell.dll   php-win.exe
  icule51.dll    libenchant_myspell.dll  php.exe
  
  F:\Program\php-5.5.6-x86&gt;php --version
  PHP 5.5.6 (cli) (built: Nov 12 2013 11:33:16)
  Copyright (c) 1997-2013 The PHP Group
  Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
  
  F:\Program\php-5.5.6-x86&gt;
  </code></pre>
  
  <p>By the way the same thing occurs in wampserver php, so it probably dont have anything to do with 86 bit install or 5.5.6 unstable.</p>
  
  <p>I also tried run as admin not working either, same output.</p>