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

Bug #20463 domain-literal parsing error
Submitted: 2014-12-13 09:18 UTC
From: hgschulz Assigned: ashnazg
Status: Closed Package: Mail (version 1.2.0)
PHP Version: 5.6.2 OS: Centos
Roadmaps: (Not assigned)    
Subscription  


 [2014-12-13 09:18 UTC] hgschulz (Henning Schulzrinne)
Description: ------------ Parsing email addresses like MDaemon@[127.0.0.1] fails. Test script: --------------- $M = new Mail_RFC822(); $mb = 'MDaemon@[127.0.0.1]'; var_dump($M->validateMailbox($mb)); Expected result: ---------------- bool(true); Actual result: -------------- File /usr/local/lib/php/Mail/RFC822.php, line 842 Edas\edasError(8, "Undefined offset: 1", "/usr/local/lib/php/Mail/RFC822.php", 842, Array(2)) File /usr/local/lib/php/Mail/RFC822.php, line 823 Mail_RFC822->_validateDliteral("127.0.0.1") File /usr/local/lib/php/Mail/RFC822.php, line 804 Mail_RFC822->_validateSubdomain("[127.0.0.1]") File /usr/local/lib/php/Mail/RFC822.php, line 872 Mail_RFC822->_validateDomain("[127.0.0.1]") File /usr/local/lib/php/Mail/RFC822.php, line 683 Mail_RFC822->_validateAddrSpec("MDaemon@[127.0.0.1]") File /home/edas/edas/testEDAS.php, line 25 Mail_RFC822->validateMailbox("MDaemon@[127.0.0.1]")

Comments

 [2017-04-10 18:11 UTC] ashnazg (Chuck Burgess)
-Status: Open +Status: Closed -Assigned To: +Assigned To: ashnazg
Fixed by PR #11 (https://github.com/pear/Mail/pull/11).