[Fwd: Re: [PEAR-QA] BC-break in Mail/mail.php? (was: Mail-1.1.3 (stable) Released.)]
| From: | Tobias Schlitt | Date: | Thu, 08 Apr 2004 20:19:55 +0000 |
| Subject: | [Fwd: Re: [PEAR-QA] BC-break in Mail/mail.php? (was: Mail-1.1.3 (stable) Released.)] | ||
| Groups: | php.pear.qa | ||
| Request: | Send a blank email to pear-qa+get-1079@lists.php.net to get a copy of this message | ||
Hi!
I guess it was just a fix from 1.1.1 to 1.1.2 in Mail/mail.php:
- return mail($recipients, $subject, $body, $text_headers, $this->_params); - }<snip />
+ if (empty($this->_params) || ini_get('safe_mode')) {
+ $result = mail($recipients, $subject, $body, $text_headers);
+ } else {
+ $result = mail($recipients, $subject, $body, $text_headers,
+ $this->_params);
+ }
<snip />
+ if ($result === false) {
+ $result = PEAR::raiseError('mail() returned failure',
+ PEAR_MAIL_FAILED);
+ }
+
+ return $result; + }For that, I guess it's a) to late to rechange and b) the better bahavior implemented now. Regard, Toby -- Tobias Schlitt GPG Key: 0xA6529579 a passion for php http://www.schlitt.info -- Tobias Schlitt GPG Key: 0xA6529579 a passion for php http://www.schlitt.info