title: MacOS Sierra - Override PHP with XAMPP breaking brew
body: <p>I am wanting to forget about the built-in version of PHP that is on the mac and have the terminal use my XAMP version. I am getting different results from my browser vs CLI.</p>
  
  <p>I edited my PATH in the <code>~/.bash_profile</code> which fixed my PHP version problem. However, it broke homebrew :(</p>
  
  <hr>
  
  <p>bash_profile:</p>
  
  <pre><code>export PATH="/usr/local/sbin:/Applications/XAMPP/xamppfiles/bin:$PATH"
  </code></pre>
  
  <p>paths:</p>
  
  <pre><code>which php
  /Applications/XAMPP/xamppfiles/bin/php
  
  which brew
  /usr/local/bin/brew
  
  which head
  /Applications/XAMPP/xamppfiles/bin/head
  </code></pre>
  
  <p>This is causing brew to give me the list of commands no matter what I try.</p>
  
  <pre><code> brew -v
   Unknown option: n
   Unknown option: 1
   ... list of command help...
  </code></pre>
  
  <p>Do I need to do something different with my <code>.bash_profile</code>? Maybe just alias php to the XAMPP?</p>