スクリプトを実行すると、何か問題が発生し、例外がスローされますが、代わりにすべてのスクリプトが停止します。zend に続行するように指示するにはどうすればよいですか?
このエラーは、try catch ブロックがあるメールをフェッチすると表示されますが、キャッチされません。
Fatal error: Uncaught exception 'Zend\Mail\Exception\RuntimeException' with message 'Line "X-Assp-Message/IP-Score:
ありがとう。
私のコードは、メールを取得するための単純なクラスです:
$listm = new Zend\Mail\Storage\Pop3(array('host' => $this->mServer,'user' => $this->mMail, 'password' => $this->mPassword));
foreach ($listm as $msgp3)
{
try
{
e($msgp3->from);
e($msgp3->to);
e($msgp3->subject);
e($msgp3->date);
e(strtotime($msgp3->date));
e($msgp3->messageid);
} catch (Exception $e) {
e($e->getMessage());
}
}
私のコードは 10em メールで停止します。