description = $string; $this->level = $level; $this->code = "AMFPHP_RUNTIME_ERROR"; $this->file = $file; $this->line = $line; Exception::__construct($string); } } function amfErrorHandler($level, $string, $file, $line, $context) { //forget about errors not defined at reported $amfphpErrorLevel = $GLOBALS['amfphp']['errorLevel']; if( error_reporting() != 0 && ($amfphpErrorLevel | $level) == $amfphpErrorLevel ) { throw new VerboseException($string, $level, $file, $line); } } set_error_handler("amfErrorHandler"); ?>