These are chat archives for PHPixie/Hotline

7th
May 2016
caseyhayes
@caseyhayes
May 07 2016 21:44
I feel this is a really simple/silly question, but I am obviously missing something. I wrote a web application in 2.x. How do I suppress the trace or catch the error myself? I want to test imap_open, however, if it fails, it kills the app instead of letting me handle it. @imap_open, imap_errors() & imap_alerts() don't help.
Roman Tsiupa
@dracony
May 07 2016 23:03
use try{} catch
try{
    imap_open(...);
}catch(\Exception $e) {
    echo "Failed: ".$e->getMessage();
}