From 76a99765cfb8bdf473a7739c8260f353c1aabb89 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 21 Dec 2005 00:58:12 +0000 Subject: [PATCH] Accessing characters using {} in strings is deprecated in PHP 5.1. See http://www.php.net/~derick/meeting-notes.html section 4.5. --- includes/svnlib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/svnlib.php b/includes/svnlib.php index 5b92e0e..e2a7283 100644 --- a/includes/svnlib.php +++ b/includes/svnlib.php @@ -1042,7 +1042,7 @@ class SVNDiff $viewsvn->debug("min1 = $min"); - while ($start < $min AND $old{"$start"} == $new{"$start"}) + while ($start < $min AND $old["$start"] == $new["$start"]) { $start++; } @@ -1052,9 +1052,9 @@ class SVNDiff $viewsvn->debug("min2 = $min"); - $viewsvn->debug("checking: " . $old{ strlen($old) + $end } . ' == ' . $new{ strlen($new) + $end }); + $viewsvn->debug("checking: " . $old[ strlen($old) + $end ] . ' == ' . $new[ strlen($new) + $end ]); - while (-$end <= $min AND $old{ strlen($old) + $end } == $new{ strlen($new) + $end }) + while (-$end <= $min AND $old[ strlen($old) + $end ] == $new[ strlen($new) + $end ]) { $end--; } -- 2.43.5