[Tickets #14738] Re: Failed asserts in Text_Diff in 'native' engine

noreply at bugs.horde.org noreply at bugs.horde.org
Sun Sep 23 19:07:58 UTC 2018


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/14738
------------------------------------------------------------------------------
  Ticket             | 14738
  Updated By         | dwayne.towell at gmail.com
  Summary            | Failed asserts in Text_Diff in 'native' engine
  Queue              | Horde Framework Packages
  Type               | Bug
  State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


dwayne.towell at gmail.com (2018-09-23 19:07) wrote:


$a="a =
print (a)
print ()
print (a)
print ()
print (a)

";
$b = "a =
print ()
print (a)
print ()
print (a)
print ()

";
$diff = new Horde_Text_Diff('auto',[explode("\n",$a),explode("\n",$b)]);

produces:

PHP Warning:  assert(): assert($y <= $this->seq[$k]) failed in  
/usr/share/pear/Horde/Text/Diff/Engine/Native.php on line 199
PHP Stack trace:
PHP   1. {main}() /var/www/util/compute_metrics.php:0
PHP   2. Horde_Text_Diff->__construct() /var/www/util/compute_metrics.php:198
PHP   3. Horde_Text_Diff_Engine_Native->diff()  
/usr/share/pear/Horde/Text/Diff.php:47
PHP   4. Horde_Text_Diff_Engine_Native->_compareseq()  
/usr/share/pear/Horde/Text/Diff/Engine/Native.php:86
PHP   5. Horde_Text_Diff_Engine_Native->_diag()  
/usr/share/pear/Horde/Text/Diff/Engine/Native.php:283
PHP   6. assert() /usr/share/pear/Horde/Text/Diff/Engine/Native.php:199






More information about the bugs mailing list