title: Php unusual fatal error with "name is already in use"
body: <p>On my local development machine (php 5.3.14) I can use a class like this:</p>
  
  <pre><code>&lt;?php
  
  namespace Shop\Repository;
  
  use Shop\Entity\Day;
  use Doctrine\ORM\EntityRepository;
  
  class Product extends EntityRepository
  {
      // Code
  }
  </code></pre>
  
  <p>The class is stored in /my/src/Shop/Repository/Product.php (PSR-0 compliant). I have <strong>also</strong> a <code>Shop\Repository\Day</code> located at /my/src/Shop/Repository/Day.php.</p>
  
  <p>However, on my staging server (php 5.3.10) I get the following error:</p>
  
  <blockquote>
    <p>PHP Fatal error:  Cannot use Shop\Entity\Day as Day because the name is already in use in /my/src/Shop/Repository/Product.php on line 5</p>
  </blockquote>
  
  <p>I can understand the message, if I alias my Shop\Entity\Day import to DayEntity, the code works. But I cannot understand the cause of the fatal error: why does this work on php 5.3.14 (or at least, with my configuration) and not with 5.3.10 (or at least, with the server's configuration)?</p>
  
  <p>I guess the problem is because in the namespace <code>Shop\Repository</code> there is already a <code>Day</code> loaded. But this has never lead to errors in my setup! What's going on?</p>