All pastes #715812 Raw Edit

Amenthes

public php v1 · immutable
#715812 ·published 2007-09-26 14:21 UTC
rendered paste body
<?phperror_reporting(E_ALL | E_STRICT);function CMB_Autoload($class){    $file  = str_replace('_', '/', $class) . '.php';    $paths = explode( PATH_SEPARATOR, get_include_path() );    //$paths = array_reverse($paths);    foreach ( $paths as $path )    {        if ( file_exists($path . DIRECTORY_SEPARATOR . $file ) )        {            include $file;            if ( ! class_exists($class) )            {                throw new LogicException('Class declaration not found');            }            return;        }    }    throw new LogicException('File not found');}spl_autoload_register('CMB_Autoload');function CMB_errorHandler($errno, $errstring, $errfile, $errline){    $message['file']    = $errfile;    $message['line']    = $errline;    $message['message'] = $errstring;    throw new CMB_Exception_Error($message, $errno);}set_error_handler('CMB_errorHandler');echo 1/0;?>