Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0

Request #12478 hide PHP warnings, raised from PHP functions used in the class
Submitted: 2007-11-19 00:48 UTC
From: cwiedmann Assigned:
Status: Open Package: Mail (version CVS)
PHP Version: Irrelevant OS: Windows_NT
Roadmaps: (Not assigned)    
Subscription  


 [2007-11-19 00:48 UTC] cwiedmann (Carsten Wiedmann)
Description: ------------ Hello, Mail_smtp: For example, if you use mail() on Windows, and the mailserver is down, mail() returns false, and the class returns a PEAR::Error Object. But PHP also outputs a "Warning" with a failure description. It would be nice, to not see this "Warning". Instead having the description in PEAR::Error->getUserInfo() / getDebugInfo(). That's my most important issue. For example in Mail_smtp you also hide the error in popen. Mail_smtp: It would be nice, if this class returns only a PEAR::Error and no PHP warning if Net/SMTP.php is not installed. Like it happend, if the Net_SMTP instance can not be created. Mail_smtpmx: It would be nice, if this class returns only a PEAR::Error and no PHP warning if Net/DNS is not installed. Mail_sendmail: IMHO the default args should be "-t -i". And not only "-i". I have attached a patch, which fix this issues for me. Regards, Carsten

Comments