<?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=I18N_UnicodeString</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/10572" />

     </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/10572">
      <title>I18N_UnicodeString: Bug 10572 [Open] stringReplace does infinite loop</title>
      <link>http://pear.php.net/bugs/10572</link>
      <content:encoded><![CDATA[<pre>I18N_UnicodeString Bug
Reported by abadura
2007-03-31T06:51:08+00:00
PHP: 5.2.0 OS: Windows XP, SP2 Package Version: 0.2.1

Description:
------------
It seems to me that stringReplace does not handle correctly a case where the replacing string does contain the string to be replaced because it hangs (I suspect it enters infinte loop).

Perhaps it was intended behavior (but why? performance?) but if so than you should perhaps add a funcion which does not have this drawback and of course make it clear in documentation.

Test script:
---------------
$ustr_amp_find = new I18N_UnicodeString('&amp;', 'ASCII');
$ustr_amp_replace = new I18N_UnicodeString('&amp;amp;', 'ASCII');

$ustr = new I18N_UnicodeString('(p&amp;&amp;q)||r', 'HTML');
$ustr = $ustr-&gt;stringReplace($ustr_amp_find, $ustr_amp_replace);

Expected result:
----------------
(p&amp;amp;&amp;amp;q)||r

Actual result:
--------------
The stringReplace function never ends.</pre>]]></content:encoded>
      <description><![CDATA[<pre>I18N_UnicodeString Bug
Reported by abadura
2007-03-31T06:51:08+00:00
PHP: 5.2.0 OS: Windows XP, SP2 Package Version: 0.2.1

Description:
------------
It seems to me that stringReplace does not handle correctly a case where the replacing string does contain the string to be replaced because it hangs (I suspect it enters infinte loop).

Perhaps it was intended behavior (but why? performance?) but if so than you should perhaps add a funcion which does not have this drawback and of course make it clear in documentation.

Test script:
---------------
$ustr_amp_find = new I18N_UnicodeString('&amp;', 'ASCII');
$ustr_amp_replace = new I18N_UnicodeString('&amp;amp;', 'ASCII');

$ustr = new I18N_UnicodeString('(p&amp;&amp;q)||r', 'HTML');
$ustr = $ustr-&gt;stringReplace($ustr_amp_find, $ustr_amp_replace);

Expected result:
----------------
(p&amp;amp;&amp;amp;q)||r

Actual result:
--------------
The stringReplace function never ends.</pre>]]></description>
      <dc:date>2007-03-31T06:51:08+00:00</dc:date>
      <dc:creator>abadura &amp;#x61;&amp;#116; o2 &amp;#x64;&amp;#111;&amp;#x74; pl</dc:creator>
      <dc:subject>I18N_UnicodeString Bug</dc:subject>
    </item>
</rdf:RDF>
