--TEST-- GH-7875 (mails are sent even if failure to log throws exception) --SKIPIF-- --INI-- sendmail_path={MAIL:{PWD}/gh7875.mail.out} mail.log={PWD}/gh7875.mail.log --FILE-- getMessage(), PHP_EOL; var_dump(file_exists(__DIR__ . "/gh7875.mail.out")); } ?> --CLEAN-- --EXPECTF-- mail(%s): Failed to open stream: Permission denied bool(false)