title: PHP - same path, but require gets different file (localhost vs server)
body: <p>I am currently working on a poorly written legacy web project yet still trying to understand certain weird things about it.
  Let's say I have the following file structure</p>
  
  <pre><code>- htdocs/
  -- index.php
  -- vendor/
  --- autoload.php
  -- src/
  --- news2.php
  --- vendor/
  ---- autoload.php
  </code></pre>
  
  <p>The <code>htdocs/index.php</code> file includes <code>htdocs/src/news2.php</code> file.
  And the <code>htdocs/src/news2.php</code> includes the line</p>
  
  <pre><code>require 'vendor/autoload.php';
  </code></pre>
  
  <p>The local XAMPP copy works as expected and includes <code>htdocs/src/vendor/autoload.php</code>
  However, the server version behaves differently and includes <code>htdocs/vendor/autoload.php</code> instead.
  Is that normal behaviour and what could be the reason?
  I checked if there are any symlinks and there are none. Otherwise, I am clueless.
  PHP is 5.6, the server has more or less regular Ubuntu LAMP.</p>