From 0cf39870f5a491aef999766b2226d76a37c2d8a9 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Sat, 14 Sep 2013 21:43:35 -0400 Subject: [PATCH] Only shallow copy options. --- jsonld.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/jsonld.php b/jsonld.php index ac330d5..31b00a7 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1056,7 +1056,7 @@ class JsonLdProcessor { try { // expand frame - $opts = self::copy($options); + $opts = $options; $opts['keepFreeFloatingNodes'] = true; $expanded_frame = $this->expand($frame, $opts); } @@ -1113,7 +1113,7 @@ class JsonLdProcessor { try { // convert to RDF dataset then do normalization - $opts = self::copy($options); + $opts = $options; if(isset($opts['format'])) { unset($opts['format']); } @@ -1834,9 +1834,7 @@ class JsonLdProcessor { if(is_object($value) || is_array($value)) { return unserialize(serialize($value)); } - else { - return $value; - } + return $value; } /**