Permalink
Browse files

Test for Bug #17178 Mail_RFC822::parseAddressList does not accept RFC…

…-valid group syntax

git-svn-id: http://svn.php.net/repository/pear/packages/Mail/trunk@295724 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 4505ecd commit 6b6be3dd39381fcbfd2edb286d5307dd985f6310 @CloCkWeRX CloCkWeRX committed Mar 2, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/bug17178.phpt
View
@@ -0,0 +1,11 @@
+--TEST--
+Mail_RFC822::parseAddressList does not accept RFC-valid group syntax
+--FILE--
+<?php
+require "Mail/RFC822.php";
+
+var_dump(Mail_RFC822::parseAddressList("empty-group:;","invalid",false,false));
+
+--EXPECT--
+array(0) {
+}

0 comments on commit 6b6be3d

Please sign in to comment.