From f5337b81180401c6f13477974700acda10eb3561 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Sat, 6 Apr 2013 00:15:39 -0400 Subject: [PATCH] Do not consider any two @lists equal. --- jsonld.php | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/jsonld.php b/jsonld.php index f61e332..1d9d0c2 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1,7 +1,7 @@ {'@list'}; - $list2 = $v2->{'@list'}; - $count_list1 = count($list1); - $count_list2 = count($list2); - if($count_list1 !== $count_list2) { - return false; - } - for($i = 0; $i < $count_list1; ++$i) { - if(!self::compareValues($list1[$i], $list2[$i])) { - return false; - } - } - return true; - } - - // 4. equal @ids + // 3. equal @ids if(is_object($v1) && property_exists($v1, '@id') && is_object($v2) && property_exists($v2, '@id')) { return $v1->{'@id'} === $v2->{'@id'};