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

Bug #4636 send() fails with more than one 'Received' header
Submitted: 2005-06-20 10:18 UTC
From: marek dot gleska at comp-win dot pl Assigned: jon
Status: Closed Package: Mail
PHP Version: 4.3.10 OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-20 10:18 UTC] marek dot gleska at comp-win dot pl
Description: ------------ Function send() requires $headers as an associative array. There is no simple way to build $headers with two (or more) 'Received' headers - associative array allow only one value with 'Received' key. Array operator '+' or array_merge() does not help too. Reproduce code: --------------- na Expected result: ---------------- na Actual result: -------------- na

Comments

 [2005-06-20 15:53 UTC] jon
Perhaps we could allow the value of $headers['Received'] to be an array of Received: headers?
 [2005-06-21 06:21 UTC] marek dot gleska at comp-win dot pl
Yes. I think it is the best, simple solution.
 [2005-06-26 23:19 UTC] jon
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.