title: Can't seem to set my php.exe path in pear.bat
body: <p>I installed PEAR and when I try to run it, I receive this message: </p>
  
  <blockquote>
    <p>PHP_PEAR_PHP_BIN is not set correctly. Please fix it using your
    environment variable or modify the default value in pear.bat The
    current value is: .\php.exe</p>
  </blockquote>
  
  <p>In the pear.bat file that error message is generated as such: </p>
  
  <pre><code>:PEAR_PHPBIN_ERROR
  ECHO PHP_PEAR_PHP_BIN is not set correctly.
  ECHO Please fix it using your environment variable or modify
  ECHO the default value in pear.bat
  ECHO The current value is:
  ECHO %PHP_PEAR_PHP_BIN%
  GOTO END
  </code></pre>
  
  <p>At the top of the file there is a conditional set like so: </p>
  
  <pre><code>IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=.\php.exe"
  </code></pre>
  
  <p>That's my starting point. I've changed that path to this: </p>
  
  <pre><code>IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=C:\hqp\xampp\php\php.exe"
  </code></pre>
  
  <p>Regardless of the change, I get the same error in the command line, as in it still thinks the value is <code>.\php.exe</code>. I can tweak the error message and my tweaks will appear in the command line so I'm confident this pear.bat file is being referenced.</p>
  
  <p>So my assumption is, based on that condition, <code>"%PHP_PEAR_PHP_BIN%"!=""</code> and if that is the case, where is it being set so I can override it to my correct path? Ideas where I should look or how to troubleshoot this further?</p>
  
  <p>Here's my pear.bat source code: <a href="http://codetidy.com/919/" rel="noreferrer">http://codetidy.com/919/</a>
  Thanks!</p>