/opt/cpanel/ea-php56/root/usr/share/tests/pear/Mail/tests
NameSizeModeActions
9137.phpt10010644editdlrm
9137_2.phpt12260644editdlrm
13659.phpt6750644editdlrm
bug17178.phpt2280644editdlrm
bug17317.phpt4210644editdlrm
rfc822.phpt28490644editdlrm
smtp_error.phpt7550644editdlrm
Edit: /opt/cpanel/ea-php56/root/usr/share/tests/pear/Mail/tests/9137.phpt (1001B)
--TEST-- Mail: Test for bug #9137 --FILE-- 'John Doe', 'email' => 'test@example.com'), array('name' => 'John Doe\\', 'email' => 'test@example.com'), array('name' => 'John "Doe', 'email' => 'test@example.com'), array('name' => 'John "Doe\\', 'email' => 'test@example.com'), ); for ($i = 0; $i < count($addresses); $i++) { // construct the address $address = "\"" . addslashes($addresses[$i]['name']) . "\" ". "<".$addresses[$i]['email'].">"; $parsedAddresses = Mail_RFC822::parseAddressList($address); if (is_a($parsedAddresses, 'PEAR_Error')) { echo $address." :: Failed to validate\n"; } else { echo $address." :: Parsed\n"; } } --EXPECT-- "John Doe" :: Parsed "John Doe\\" :: Parsed "John \"Doe" :: Parsed "John \"Doe\\" :: Parsed