<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/12478/bug">
    <title>PEAR Bug #12478</title>
    <link>http://pear.php.net/bugs/12478</link>
    <description>[Open] hide PHP warnings, raised from PHP functions used in the class</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/12478"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/12478">
      <title>cwiedmann</title>
      <link>http://pear.php.net/bugs/12478</link>
      <description><![CDATA[<pre>Mail Feature/Change Request
Reported by cwiedmann
2007-11-19T00:48:42-00:00
PHP: Irrelevant OS: Windows_NT Package Version: CVS

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 &quot;Warning&quot; with a failure description.

It would be nice, to not see this &quot;Warning&quot;. Instead having the description in PEAR::Error-&gt;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 &quot;-t -i&quot;. And not only &quot;-i&quot;.

I have attached a patch, which fix this issues for me.

Regards,
Carsten</pre>]]></description>
      <content:encoded><![CDATA[<pre>Mail Feature/Change Request
Reported by cwiedmann
2007-11-19T00:48:42-00:00
PHP: Irrelevant OS: Windows_NT Package Version: CVS

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 &quot;Warning&quot; with a failure description.

It would be nice, to not see this &quot;Warning&quot;. Instead having the description in PEAR::Error-&gt;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 &quot;-t -i&quot;. And not only &quot;-i&quot;.

I have attached a patch, which fix this issues for me.

Regards,
Carsten</pre>]]></content:encoded>
      <dc:date>2007-11-19T00:48:42-00:00</dc:date>
    </item>
</rdf:RDF>