title: Visual Studio Code can't find PHP function - maybe "require_once" syntax?
body: <p>I would like to switch to Visual Studio Code for PHP development.</p>
  <p>All of my files start with <code>require_once</code> with this syntax</p>
  <pre><code>require_once(__DIR__ .  DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'common'  . DIRECTORY_SEPARATOR . 'api'  . DIRECTORY_SEPARATOR . 'RequireCommonStuff.php');
  </code></pre>
  <p>and debugging won't launch, presumably because VSC says that there are problems with the file to be debugged, along the lines of</p>
  <blockquote>
  <p>Undefined function 'DumpGetAndPostParametersIfDebugging'.</p>
  </blockquote>
  <p>where that function is declared in one of my required files.</p>
  <p>Strangely, there are no problems reported for the <code>require_once</code> statements, but I can think of no other explanation for the function not being found.</p>
  <p>The code works just fine with PHPstorm, I am testing on <code>localhost</code> - any ideas as to what I am doing wrongly?</p>
  <hr />
  <p>[Update] the error is happenig with every function which is declared in a required file. Here's what leads to the first example.</p>
  <p>in <code>RequireCommonStuff.php</code>, I just have more <code>require_once</code>s :</p>
  <pre><code>require_once(__DIR__ . DIRECTORY_SEPARATOR . 'constants.php');
  require_once(__DIR__ . DIRECTORY_SEPARATOR . 'third_party' . DIRECTORY_SEPARATOR .'ChromePhp.php');
  require_once(__DIR__ . DIRECTORY_SEPARATOR . 'errorHandling.php');
  require_once(__DIR__ . DIRECTORY_SEPARATOR . 'trace.php');
  require_once(__DIR__ . DIRECTORY_SEPARATOR . 'parseAndValidateUrlGetParameters.php');
  </code></pre>
  <p>The last of those is causing the error I discuss (although all of them cause erros). It's contents are (note: no classes involved), header comment stripped</p>
  <pre><code>function ParseAndValidateUrlGetParameters($url, 
                                           $inputType, 
                                           $filter, 
                                           $debug, 
                                           $reportIndicent=true, 
                                           $allFieldsMandatory=true)
  {
  </code></pre>