title: set_error_handler function not calling autoload
body: <p>I have the <code>set_error_handler()</code> function set to call a function when there is an error.</p>
  
  <p>In that function I have my own implementation of the exception class:</p>
  
  <pre><code>function acs_error_handler($errno, $errstr, $errfile, $errline) {    
      throw new acs_exception($errstr, $errno);     
  }
  </code></pre>
  
  <p>This gives me the following error:</p>
  
  <blockquote>
    <p>Fatal error: Class 'acs_exception' not found</p>
  </blockquote>
  
  <p>For some reason, this function does not call my autoload function which I have set up using: </p>
  
  <pre><code>spl_autoload_register('__autoload');
  </code></pre>
  
  <p>If I add the line:</p>
  
  <pre><code>__autoload('acs_exception');
  </code></pre>
  
  <p>before calling the class in the error function it all works.</p>
  
  <p>My question is: Shouldn't the <code>__autoload()</code> function fire when I call the acs_exception class in the error trigger function??</p>