/** * Callback called when PEAR throws an error * * @param PEAR_Error $error */ function pear_handle_error($error) { echo '<strong>' . $error->GetMessage() . '</strong> ' . $error->getUserInfo(); echo '<br /> <strong>Backtrace </strong>:'; print_object($error->backtrace); }