For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > April 2004 > [Fwd: Re: [PEAR-QA] BC-break in Mail/mail.php? (was: Mail-1.1.3 (stable)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [Fwd: Re: [PEAR-QA] BC-break in Mail/mail.php? (was: Mail-1.1.3 (stable)
Tobias Schlitt

2004-04-08, 5:32 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com