title: PHP spl_autoload_register() doesn't find function
body: <p>This code:</p>
  
  <pre><code>&lt;?php
  namespace designblob;
  
  function autoloader($class){
          include "wrappers/databaseWrapper.php";
  }
  
  spl_autoload_register('autoloader');    
  ?&gt;
  </code></pre>
  
  <p>throws this error:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'LogicException' with message 'Function 'autoloader' not found (function 'autoloader' not found or invalid function name)' in /var/www/xxx/library/autoloader.php:8 Stack trace: #0 /var/www/xxx/library/autoloader.php(8): spl_autoload_register('autoloader') #1 /var/www/xxx/library/debug.php(19): require_once('/var/www/xxx...') #2 {main} thrown in /var/www/xxxm/library/autoloader.php on line 8 </p>
  </blockquote>
  
  <p>Why doesn't it work?</p>