6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14738] Failed asserts in Text_Diff in 'native' engine
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. ,.__ .___. . |\ | \./ [__)[__ | | | \| | | \| |/\|
Comment
> So I just upgraded to Horde_Text_Diff 2.2.0, but the native engine is > spewing out warnings about failed asserts: > > PHP Warning: assert(): assert($y <= $this->seq[$k]) failed in > <snip>/Horde/Text/Diff/Engine/Native.php on line 199 > PHP Warning: assert(): assert($ypos != $this->seq[$end]) failed in > <snip>/Horde/Text/Diff/Engine/Native.php on line 239 > > Some searching brought up a WordPress bug report [1] where they > backported commit 65f92a [2] and noticed the same issue. They didn't > really come up with a proper fix themselves - just "reverting" to > using current() and next() instead of each(). That doesn't seem like > a proper solution to me - it's still relying on mashing the internal > array pointer that was why each() was deprecated in the first place, > but regardless it does the job. > > In my searching I also found #4497 [3], which seems like it could be > related to this issue, despite it being a decade old > > [1] https://core.trac.wordpress.org/ticket/41526 > [2] > https://github.com/horde/Text_Diff/commit/65f92a945f3745be2953d2bcc24735e860cf70a7 > [3] https://bugs.horde.org/ticket/4997
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers