title: PHP Autoloading Extended Classes
body: <p>Based on the response from <a href="https://stackoverflow.com/questions/1420174/is-autoload-called-for-parent-classes-of-autoloaded-classes">this question</a> I would expect my code to work but for some reason it is not. I have a simple class that extends a class from my library of classes.</p>
  
  <p><strong>_custom.php</strong></p>
  
  <pre><code>$custom = new MyClass();
  class MyClass extends MyAbstractClass{
  
    public function __construct(){
        parent::__construct();
    }
  
  }
  </code></pre>
  
  <p>Unfortunately I get this fatal error:</p>
  
  <blockquote>
    <p><strong>Fatal error</strong>: Class 'MyClass' not found in ...</p>
  </blockquote>
  
  <p>But if I remove the <code>extends MyAbstractClass</code> then the error goes away. It seems the issue is that when attempting to extend the class, it does not attempt to load <code>MyAbstactClass</code> which then causes <code>MyClass</code> to not be found at all.</p>
  
  <p>Any thoughts or suggestions on this?</p>