6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/29/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14813] Horde Text Diff crashes when comparing large strings
*
Your Email Address
*
Spam protection
Enter the letters below:
__ __ .__ .___..__. / `/ `[ __ | | | \__.\__.[_./ | |__\
Comment
> Hi, > > I have a web app live in production, that compares two large strings, > less than 5 MB in size. > > And it's crashing right at the 3rd line below. Doesn't get past line 3 below. > > $diff = new Horde_Text_Diff('auto', array( explode("\n", > $contentsOld) , explode("\n", $contentsNew) ) ); > $renderer = new Horde_Text_Diff_Renderer_Inline(); > $diff = $renderer->render($diff); > > $contentsOld and $contentsNew contain the two large strings - one > read from a MySQL mediumtext field, and another coming from > file_get_contents of a URL. Works fine for most use cases, but > crashes when it gets above a certain size. I'm guessing around the > 4-5 MB size. > > Is there any way to get it to exit gracefully? It doesn't seem to be > throwing any exceptions either. > > And is there a way to know exactly where it's failing? > > Thanks! > > - Ravi
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