# autoload.noCache.inc.php

Go to the documentation of this file.

    00001 <?php
    00002 /***************************************************************************
    00003  *   Copyright (C) 2008 by Konstantin V. Arkhipov                          *
    00004  *                                                                         *
    00005  *   This program is free software; you can redistribute it and/or modify  *
    00006  *   it under the terms of the GNU Lesser General Public License as        *
    00007  *   published by the Free Software Foundation; either version 3 of the    *
    00008  *   License, or (at your option) any later version.                       *
    00009  *                                                                         *
    00010  ***************************************************************************/
    00011
    00012     /* void */ function __autoload($classname)
    00013     {
    00014         if (strpos($classname, "\0") !== false) {
    00015             /* are you sane? */
    00016             return;
    00017         }
    00018
    00019         try {
    00020             include $classname.EXT_CLASS;
    00021             return /* void */;
    00022         } catch (BaseException $e) {
    00023             return __autoload_failed($classname, $e->getMessage());
    00024         }
    00025     }
    00026 ?>