<?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=Text_Diff</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/17620" />
      <rdf:li rdf:resource="http://pear.php.net/bug/17502" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16965" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16774" />
      <rdf:li rdf:resource="http://pear.php.net/bug/6359" />
      <rdf:li rdf:resource="http://pear.php.net/bug/4982" />

     </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/17620">
      <title>Text_Diff: Feature/Change Request 17620 [Open] Trimming newlines should not be done by the engines</title>
      <link>http://pear.php.net/bugs/17620</link>
      <content:encoded><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by dirkthomas_tigrisorg
2010-07-22T12:52:29+00:00
PHP: 5.3.2 OS: Windows 7 Package Version: 1.1.1

Description:
------------
If you want to use the package to diff two different files it should be possible to detect differences in line endings too. This is currently not possible since every engine processes the passed line with &quot;trimNewlines&quot;. Therefore this should be moved out of the engines are at least be made configurable.
Since i am a developer of WebSVN (http://www.websvn.info) i currently have to patch the package to remove the trimming, since it is perfectly valid to have lines which only differ in line endings, but which needs to be detected as a difference.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by dirkthomas_tigrisorg
2010-07-22T12:52:29+00:00
PHP: 5.3.2 OS: Windows 7 Package Version: 1.1.1

Description:
------------
If you want to use the package to diff two different files it should be possible to detect differences in line endings too. This is currently not possible since every engine processes the passed line with &quot;trimNewlines&quot;. Therefore this should be moved out of the engines are at least be made configurable.
Since i am a developer of WebSVN (http://www.websvn.info) i currently have to patch the package to remove the trimming, since it is perfectly valid to have lines which only differ in line endings, but which needs to be detected as a difference.</pre>]]></description>
      <dc:date>2011-06-06T14:33:17+00:00</dc:date>
      <dc:creator>dirkthomas &amp;#x61;&amp;#116; tigris &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>Text_Diff Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/17502">
      <title>Text_Diff: Bug 17502 [Open] Text_Diff3 merge conflicts without reason</title>
      <link>http://pear.php.net/bugs/17502</link>
      <content:encoded><![CDATA[<pre>Text_Diff Bug
Reported by stoefln
2010-06-18T14:49:56+00:00
PHP: 5.2.12 OS: MacOs X, Windows XP Package Version: 1.1.1

Description:
------------
try to merge the files underneith, you will get an merge conflict. diff3 on my mac system merges this without problems.

====BASE FILE====
// some merge test
aaa
bbb
ccc
ccc
ddd
eee
fff
ggg
hhh

====CHANGED FILE1====
// some merge test
aaa
bbb-this line is changed
ccc
ddd
eee
fff
ggg
hhh

====CHANGED FILE2====
// some merge test
aaa
bbb
ccc
ccc
ddd
eee
fff
this line added
ggg
hhh

Test script:
---------------
&lt;?php

$PATH_typo3conf = '/Applications/MAMP/htdocs/typo3_svn/typo3conf/';
require_once $PATH_typo3conf . 'ext/extbase_kickstarter/lib/pear/' . &quot;Text/Diff/Engine/native.php&quot;;
require_once $PATH_typo3conf . 'ext/extbase_kickstarter/lib/pear/' . &quot;Text/Diff3.php&quot;;
 
$base =  $PATH_typo3conf .'ext/extbase_kickstarter/testmerge/Box_base.php';
$file2 = $PATH_typo3conf .'ext/extbase_kickstarter/testmerge/Box_generated.php';
$file3 = $PATH_typo3conf .'ext/extbase_kickstarter/testmerge/Box.php';
					
$merger = new Text_Diff3(file($base), file($file2),file($file3));
echo &quot;&lt;h1&gt;merged&lt;/h1&gt;&lt;pre&gt;&quot;;
print_r($merger);
echo &quot;&lt;hr&gt;&quot;;
print_r($merger-&gt;mergedOutput());
echo &quot;&lt;/pre&gt;&quot;;
 
 
?&gt;

Expected result:
----------------
====SUCCESSFULLY MERGED FILE====
// some merge test
aaa
bbb-this line is changed
ccc
ddd
eee
fff
this line added
ggg
hhh

Actual result:
--------------
Array
(
    [0] =&gt; // some merge test
    [1] =&gt; aaa
    [2] =&gt; bbb-this line is changed
    [3] =&gt; ccc
    [4] =&gt; ddd
    [5] =&gt; eee
    [6] =&gt; fff
    [7] =&gt; &lt;&lt;&lt;&lt;&lt;&lt;&lt;
    [8] =&gt; this line added
    [9] =&gt; =======
    [10] =&gt; ggg
    [11] =&gt; hhh
    [12] =&gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;
    [13] =&gt; ggg
    [14] =&gt; hhh
)</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Bug
Reported by stoefln
2010-06-18T14:49:56+00:00
PHP: 5.2.12 OS: MacOs X, Windows XP Package Version: 1.1.1

Description:
------------
try to merge the files underneith, you will get an merge conflict. diff3 on my mac system merges this without problems.

====BASE FILE====
// some merge test
aaa
bbb
ccc
ccc
ddd
eee
fff
ggg
hhh

====CHANGED FILE1====
// some merge test
aaa
bbb-this line is changed
ccc
ddd
eee
fff
ggg
hhh

====CHANGED FILE2====
// some merge test
aaa
bbb
ccc
ccc
ddd
eee
fff
this line added
ggg
hhh

Test script:
---------------
&lt;?php

$PATH_typo3conf = '/Applications/MAMP/htdocs/typo3_svn/typo3conf/';
require_once $PATH_typo3conf . 'ext/extbase_kickstarter/lib/pear/' . &quot;Text/Diff/Engine/native.php&quot;;
require_once $PATH_typo3conf . 'ext/extbase_kickstarter/lib/pear/' . &quot;Text/Diff3.php&quot;;
 
$base =  $PATH_typo3conf .'ext/extbase_kickstarter/testmerge/Box_base.php';
$file2 = $PATH_typo3conf .'ext/extbase_kickstarter/testmerge/Box_generated.php';
$file3 = $PATH_typo3conf .'ext/extbase_kickstarter/testmerge/Box.php';
					
$merger = new Text_Diff3(file($base), file($file2),file($file3));
echo &quot;&lt;h1&gt;merged&lt;/h1&gt;&lt;pre&gt;&quot;;
print_r($merger);
echo &quot;&lt;hr&gt;&quot;;
print_r($merger-&gt;mergedOutput());
echo &quot;&lt;/pre&gt;&quot;;
 
 
?&gt;

Expected result:
----------------
====SUCCESSFULLY MERGED FILE====
// some merge test
aaa
bbb-this line is changed
ccc
ddd
eee
fff
this line added
ggg
hhh

Actual result:
--------------
Array
(
    [0] =&gt; // some merge test
    [1] =&gt; aaa
    [2] =&gt; bbb-this line is changed
    [3] =&gt; ccc
    [4] =&gt; ddd
    [5] =&gt; eee
    [6] =&gt; fff
    [7] =&gt; &lt;&lt;&lt;&lt;&lt;&lt;&lt;
    [8] =&gt; this line added
    [9] =&gt; =======
    [10] =&gt; ggg
    [11] =&gt; hhh
    [12] =&gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;
    [13] =&gt; ggg
    [14] =&gt; hhh
)</pre>]]></description>
      <dc:date>2010-06-18T15:56:00+00:00</dc:date>
      <dc:creator>spetzl &amp;#x61;&amp;#116; gmx &amp;#x64;&amp;#111;&amp;#x74; at</dc:creator>
      <dc:subject>Text_Diff Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16965">
      <title>Text_Diff: Feature/Change Request 16965 [Open] Formatting output of context- and unified-diff</title>
      <link>http://pear.php.net/bugs/16965</link>
      <content:encoded><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by markush
2010-01-03T20:49:27+00:00
PHP: 5.2.5 OS: Ubuntu Package Version: 1.1.1

Description:
------------
This is a patchset for formatting the output of context- and 
unified-diff (cf. to the inline-output).

Test script:
---------------
At this link you can download the patches: http://markusholtermann.eu/?cat=downloads&amp;subcat=websoftware&amp;id=6</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by markush
2010-01-03T20:49:27+00:00
PHP: 5.2.5 OS: Ubuntu Package Version: 1.1.1

Description:
------------
This is a patchset for formatting the output of context- and 
unified-diff (cf. to the inline-output).

Test script:
---------------
At this link you can download the patches: http://markusholtermann.eu/?cat=downloads&amp;subcat=websoftware&amp;id=6</pre>]]></description>
      <dc:date>2010-01-03T20:49:27+00:00</dc:date>
      <dc:creator>info &amp;#x61;&amp;#116; markusholtermann &amp;#x64;&amp;#111;&amp;#x74; eu</dc:creator>
      <dc:subject>Text_Diff Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16774">
      <title>Text_Diff: Feature/Change Request 16774 [Open] Word boundaries are insufficient for inline differ</title>
      <link>http://pear.php.net/bugs/16774</link>
      <content:encoded><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by arencambre
2009-11-10T10:04:15+00:00
PHP: 5.2.5 OS: Debian Package Version: 1.1.1

Description:
------------
The online diff utility has a terribly insufficient word boundary definition. Currently it only defines space and \n as word boundaries. This means any punctuation will be part of a word boundary.

This can cause serious usability problems.

I recommend altering lines 158 and 159 of PEAR/Text/Diff/Renderer/inline.php and dramatically expanding the characters that define word boundaries to include all common punctuation.

Test script:
---------------
Diff these lines:
The quick cat jumped over the lazy fox, who was totally lazy and should be shot.
The quick cat jumped over the lazy fox.

Expected result:
----------------
The quick cat jumped over the lazy fox&lt;del&gt;, who was totally lazy and should be shot.&lt;/del&gt;.

This is a much more accurate and legible deletion since the result does not reconstruct the sentence structure.

Actual result:
--------------
The quick cat jumped over the lazy &lt;del&gt;fox, who was totally lazy and should be shot.&lt;/del&gt;&lt;ins&gt;fox.&lt;/ins&gt;

This renders terribly because the first half of the sentence is split by the part that was deleted.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by arencambre
2009-11-10T10:04:15+00:00
PHP: 5.2.5 OS: Debian Package Version: 1.1.1

Description:
------------
The online diff utility has a terribly insufficient word boundary definition. Currently it only defines space and \n as word boundaries. This means any punctuation will be part of a word boundary.

This can cause serious usability problems.

I recommend altering lines 158 and 159 of PEAR/Text/Diff/Renderer/inline.php and dramatically expanding the characters that define word boundaries to include all common punctuation.

Test script:
---------------
Diff these lines:
The quick cat jumped over the lazy fox, who was totally lazy and should be shot.
The quick cat jumped over the lazy fox.

Expected result:
----------------
The quick cat jumped over the lazy fox&lt;del&gt;, who was totally lazy and should be shot.&lt;/del&gt;.

This is a much more accurate and legible deletion since the result does not reconstruct the sentence structure.

Actual result:
--------------
The quick cat jumped over the lazy &lt;del&gt;fox, who was totally lazy and should be shot.&lt;/del&gt;&lt;ins&gt;fox.&lt;/ins&gt;

This renders terribly because the first half of the sentence is split by the part that was deleted.</pre>]]></description>
      <dc:date>2009-11-10T16:19:27+00:00</dc:date>
      <dc:creator>aren &amp;#x61;&amp;#116; arencambre &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Text_Diff Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/6359">
      <title>Text_Diff: Feature/Change Request 6359 [Open] Ignore whitespace</title>
      <link>http://pear.php.net/bugs/6359</link>
      <content:encoded><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by nlopess
2005-12-28T18:39:55+00:00
PHP: Irrelevant OS: n/a Package Version: 

Description:
------------
It would be good to have a &quot;ignore all white space&quot; option, just like the diff command.
a simple triming of the input would do the trick (but copy it, so that the generated diff appear with the trimed spaces).</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by nlopess
2005-12-28T18:39:55+00:00
PHP: Irrelevant OS: n/a Package Version: 

Description:
------------
It would be good to have a &quot;ignore all white space&quot; option, just like the diff command.
a simple triming of the input would do the trick (but copy it, so that the generated diff appear with the trimed spaces).</pre>]]></description>
      <dc:date>2005-12-29T13:03:20+00:00</dc:date>
      <dc:creator>nlopess &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>Text_Diff Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/4982">
      <title>Text_Diff: Feature/Change Request 4982 [Open] diff on a little bit wrong place with inline renderer</title>
      <link>http://pear.php.net/bugs/4982</link>
      <content:encoded><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by thomas@...
2005-08-03T10:35:40+00:00
PHP: 5.0.4 OS: windows 2000 Package Version: 

Description:
------------
The following script shows the new line not at the exact position.
The two files are :
/* 1.txt :
This line is the same.
This line is different in 1.txt
This line is the same.
This is gone away !!
*/
/* 2.txt
This line is the same.
This is new !!
This line is different in 2.txt
This line is the same.
*/

Test script:
---------------
&lt;?php
include_once 'Text/Diff.php';
include_once 'Text/Diff/Renderer.php';
include_once 'Text/Diff/Renderer/inline.php';
$lines1 = file('1.txt');
$lines2 = file('2.txt');
$diff = &amp;new Text_Diff($lines1, $lines2);
$renderer = &amp;new Text_Diff_Renderer_inline();
$regexold = &quot;(&lt;del&gt;.*&lt;/del&gt;)&quot;;
$regexnew = &quot;(&lt;ins&gt;.*&lt;/ins&gt;)&quot;;
$text =  $renderer-&gt;render($diff);
$textold = preg_replace($regexold,'',$text);
$textnew = preg_replace($regexnew,'',$text);
?&gt;
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 transitional//EN&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;title&gt;DIFF TEST&lt;/title&gt;
&lt;style&gt;	ins {background-color: Lime;}
	del {background-color: Red;}
	div {border: medium;border-color: blue; border-style: solid; width: 300px;background-color: #EEEEEE;}
&lt;/style&gt;
&lt;/head&gt;&lt;body&gt;
&lt;div&gt;&lt;?php echo nl2br($text); ?&gt;&lt;/div&gt;
&lt;div&gt;&lt;?php echo nl2br($textold); ?&gt;&lt;/div&gt;
&lt;div&gt;&lt;?php echo nl2br($textnew); ?&gt;&lt;/div&gt;&lt;html&gt;

Expected result:
----------------
The new line should appear as a single line,
actualy it is shown on two lines (see html below).

Actual result:
--------------
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;

This&lt;/ins&gt; line is different in &lt;del&gt;1.txt&lt;/del&gt;&lt;ins&gt;2.txt&lt;/ins&gt;&lt;br /&gt;
This line is the same.&lt;br /&gt;
&lt;del&gt;This is gone away !!&lt;/del&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;

This&lt;/ins&gt; line is different in &lt;ins&gt;2.txt&lt;/ins&gt;&lt;br /&gt;
This line is the same.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;
This&lt;/ins&gt; line is different in &lt;del&gt;1.txt&lt;/del&gt;&lt;br /&gt;

This line is the same.&lt;br /&gt;
&lt;del&gt;This is gone away !!&lt;/del&gt;&lt;br /&gt;
&lt;/div&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by thomas@...
2005-08-03T10:35:40+00:00
PHP: 5.0.4 OS: windows 2000 Package Version: 

Description:
------------
The following script shows the new line not at the exact position.
The two files are :
/* 1.txt :
This line is the same.
This line is different in 1.txt
This line is the same.
This is gone away !!
*/
/* 2.txt
This line is the same.
This is new !!
This line is different in 2.txt
This line is the same.
*/

Test script:
---------------
&lt;?php
include_once 'Text/Diff.php';
include_once 'Text/Diff/Renderer.php';
include_once 'Text/Diff/Renderer/inline.php';
$lines1 = file('1.txt');
$lines2 = file('2.txt');
$diff = &amp;new Text_Diff($lines1, $lines2);
$renderer = &amp;new Text_Diff_Renderer_inline();
$regexold = &quot;(&lt;del&gt;.*&lt;/del&gt;)&quot;;
$regexnew = &quot;(&lt;ins&gt;.*&lt;/ins&gt;)&quot;;
$text =  $renderer-&gt;render($diff);
$textold = preg_replace($regexold,'',$text);
$textnew = preg_replace($regexnew,'',$text);
?&gt;
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 transitional//EN&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;title&gt;DIFF TEST&lt;/title&gt;
&lt;style&gt;	ins {background-color: Lime;}
	del {background-color: Red;}
	div {border: medium;border-color: blue; border-style: solid; width: 300px;background-color: #EEEEEE;}
&lt;/style&gt;
&lt;/head&gt;&lt;body&gt;
&lt;div&gt;&lt;?php echo nl2br($text); ?&gt;&lt;/div&gt;
&lt;div&gt;&lt;?php echo nl2br($textold); ?&gt;&lt;/div&gt;
&lt;div&gt;&lt;?php echo nl2br($textnew); ?&gt;&lt;/div&gt;&lt;html&gt;

Expected result:
----------------
The new line should appear as a single line,
actualy it is shown on two lines (see html below).

Actual result:
--------------
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;

This&lt;/ins&gt; line is different in &lt;del&gt;1.txt&lt;/del&gt;&lt;ins&gt;2.txt&lt;/ins&gt;&lt;br /&gt;
This line is the same.&lt;br /&gt;
&lt;del&gt;This is gone away !!&lt;/del&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;

This&lt;/ins&gt; line is different in &lt;ins&gt;2.txt&lt;/ins&gt;&lt;br /&gt;
This line is the same.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;
This&lt;/ins&gt; line is different in &lt;del&gt;1.txt&lt;/del&gt;&lt;br /&gt;

This line is the same.&lt;br /&gt;
&lt;del&gt;This is gone away !!&lt;/del&gt;&lt;br /&gt;
&lt;/div&gt;</pre>]]></description>
      <dc:date>2007-09-26T15:31:02+00:00</dc:date>
      <dc:creator>thomas &amp;#x61;&amp;#116; luz-webwide &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>Text_Diff Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
