Skip to content

Commit

Permalink
Revert "Suppress internal errors from imap_reopen() (ddeboer#524)"
Browse files Browse the repository at this point in the history
This reverts commit 1eee4d7.
  • Loading branch information
vladimir.kaprielov committed Oct 27, 2022
1 parent c464779 commit 001a5ba
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ImapResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,8 @@ private function initMailbox(): void
return;
}

\set_error_handler(static function (): bool {
return true;
});

\imap_reopen($this->resource, $this->mailbox->getFullEncodedName());

\restore_error_handler();

if (self::isMailboxOpen($this->mailbox, $this->resource)) {
return;
}
Expand Down

0 comments on commit 001a5ba

Please sign in to comment.