| Package home | Report new bug | New search | Development Roadmap | Status: Open | Feedback | All | Closed Since Version 1.1.1 |
| Bug #16240 | Referencing array in place of string in xdiff.php | ||
|---|---|---|---|
| Submitted: | 2009-05-19 15:39 UTC | Modified: | 2009-07-24 14:00 UTC |
| From: | hrabbit | Assigned: | yunosh |
| Status: | Closed | Package: | Text_Diff (version 1.1.0) |
| PHP Version: | 5.2.4 | OS: | Ubuntu 8.04 |
| Roadmaps: | (Not assigned) | ||
| Patch | bugfix-16240.patch | Revisions | |
|---|---|---|---|
| Revision | 2009-05-19 15:41 UTC | ||
| Developer | hrabbit | ||
| Download patch |
--- xdiff.php 2009-05-20 00:14:03.000000000 +1000
+++ /usr/share/php/Text/Diff/Engine/xdiff.php 2009-05-20 00:24:34.000000000 +1000
@@ -42,7 +42,7 @@
* valid, albeit a little less descriptive and efficient. */
$edits = array();
foreach ($diff as $line) {
- switch ($line[0])) {
+ switch (substr($line, 0, 1)) {
case ' ':
$edits[] = &new Text_Diff_Op_copy(array(substr($line, 1)));
break;