public static function phpErrorHandler($errno, $errstr, $errfile, $errline) { if (error_reporting() & $errno) { throw new TPhpErrorException($errno, $errstr, $errfile, $errline); } }