<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Validate&amp;PHPSESSID=6sh8hov6085gl1gd4s43b0k8h0</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16489" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13825" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16489">
      <title>Validate: Feature/Change Request 16489 [Open] Validate should use mb_strlen</title>
      <link>http://pear.php.net/bugs/16489</link>
      <content:encoded><![CDATA[<pre>Validate Feature/Change Request
Reported by adrianlang
2009-08-03T12:56:28+00:00
PHP: Irrelevant OS: Debian 5.0 Package Version: Unknown

Description:
------------
I would like Validate::string to use mb_strlen for min_length and max_length.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Validate Feature/Change Request
Reported by adrianlang
2009-08-03T12:56:28+00:00
PHP: Irrelevant OS: Debian 5.0 Package Version: Unknown

Description:
------------
I would like Validate::string to use mb_strlen for min_length and max_length.</pre>]]></description>
      <dc:date>2009-08-04T01:01:35+00:00</dc:date>
      <dc:creator>mail &amp;#x61;&amp;#116; adrianlang &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>Validate Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13825">
      <title>Validate: Bug 13825 [Assigned] Email validation not working for '&amp;'</title>
      <link>http://pear.php.net/bugs/13825</link>
      <content:encoded><![CDATA[<pre>Validate Bug
Reported by ctj951
2008-05-02T16:00:52+00:00
PHP: 5.2.5 OS: Mac OS X Package Version: 0.8.1

Description:
------------
The email validation in the Validate PEAR package doesn't work correctly.  This is because the '&amp;' symbol though valid in emails such as: &quot;Joe &amp; Mac&quot;@example.com isn't accepted by the email parser.  This is caused by the simple fact that the __stringToUtf7() routine doesn't recognize any string with a '&amp;' sign as valid UTF7.  This is despite the fact that the '&amp;' character is valid UTF7 as defined by RFC 2152 as I read it:
http://www.faqs.org/rfcs/rfc2152.html

In the __stringToUtf7() routine the following substitution is made for the '&amp;' character:

elseif ($char == '&amp;') 
{
   $return .= '&amp;-';
}

Thus when the UTF7 &quot;return&quot; string is returned it doesn't match the original string passed to the UTF7 routine and all '&amp;' characters are replaced by '&amp;-'.  Its not clear why this substitution is made at all.  Especially since this routine is only used from within the email parser.  In any case the result is that the following test in __emailRFC822() fails with emails like &quot;Joe &amp; Mac&quot;@example.com:

if (Validate::__stringToUtf7($email) != $email) {
  return false;
}

Leading to the email parser returning that emails like &quot;Joe &amp; Mac&quot;@example.com are invalid email addresses when in fact they are valid. 

Test script:
---------------
Script 1: (fails when should succeed)
$Email = '&quot;Joe &amp; Mac&quot;@example.com';
$Options = 0;
assert( Validate::__emailRFC822( $Email, $Options ) );

Script 2: (fails when should succeed)
$string = '&amp;';
assert( __stringToUtf7($string) == $string );

Expected result:
----------------
Scripts fail when they should succeed

Actual result:
--------------
Scripts faile.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Validate Bug
Reported by ctj951
2008-05-02T16:00:52+00:00
PHP: 5.2.5 OS: Mac OS X Package Version: 0.8.1

Description:
------------
The email validation in the Validate PEAR package doesn't work correctly.  This is because the '&amp;' symbol though valid in emails such as: &quot;Joe &amp; Mac&quot;@example.com isn't accepted by the email parser.  This is caused by the simple fact that the __stringToUtf7() routine doesn't recognize any string with a '&amp;' sign as valid UTF7.  This is despite the fact that the '&amp;' character is valid UTF7 as defined by RFC 2152 as I read it:
http://www.faqs.org/rfcs/rfc2152.html

In the __stringToUtf7() routine the following substitution is made for the '&amp;' character:

elseif ($char == '&amp;') 
{
   $return .= '&amp;-';
}

Thus when the UTF7 &quot;return&quot; string is returned it doesn't match the original string passed to the UTF7 routine and all '&amp;' characters are replaced by '&amp;-'.  Its not clear why this substitution is made at all.  Especially since this routine is only used from within the email parser.  In any case the result is that the following test in __emailRFC822() fails with emails like &quot;Joe &amp; Mac&quot;@example.com:

if (Validate::__stringToUtf7($email) != $email) {
  return false;
}

Leading to the email parser returning that emails like &quot;Joe &amp; Mac&quot;@example.com are invalid email addresses when in fact they are valid. 

Test script:
---------------
Script 1: (fails when should succeed)
$Email = '&quot;Joe &amp; Mac&quot;@example.com';
$Options = 0;
assert( Validate::__emailRFC822( $Email, $Options ) );

Script 2: (fails when should succeed)
$string = '&amp;';
assert( __stringToUtf7($string) == $string );

Expected result:
----------------
Scripts fail when they should succeed

Actual result:
--------------
Scripts faile.</pre>]]></description>
      <dc:date>2008-06-21T01:05:07+00:00</dc:date>
      <dc:creator>chadsspameateremail &amp;#x61;&amp;#116; yahoo &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Validate Bug</dc:subject>
    </item>
</rdf:RDF>
