setCode($errno); $error->setDescription($errstr); $error->setLocation($errfile); $error->setLine($errline); $error->setType("Code"); BitSensor::addError($error); if (isset(BitSensor::$errorHandler)) call_user_func(BitSensor::$errorHandler, $errno, $errstr, $errfile, $errline, $errcontext); } }