From 5d5c1f1e5074b69bb4bc5eb0d5be7abe06f9f94d Mon Sep 17 00:00:00 2001 From: Marc Bennewitz Date: Sun, 5 Nov 2017 15:36:54 +0100 Subject: [PATCH] fixed #30 - wrong use of variable variables --- src/Adapter/PythonPickle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adapter/PythonPickle.php b/src/Adapter/PythonPickle.php index 75f6cbe..b7665a4 100644 --- a/src/Adapter/PythonPickle.php +++ b/src/Adapter/PythonPickle.php @@ -911,7 +911,7 @@ protected function loadLong4() { $nBin = $this->read(4); if (static::$isLittleEndian === false) { - $nBin = strrev($$nBin); + $nBin = strrev($nBin); } list(, $n) = unpack('l', $nBin); $data = $this->read($n); @@ -984,7 +984,7 @@ protected function loadBinBytes() // read byte length $nBin = $this->read(4); if (static::$isLittleEndian === false) { - $nBin = strrev($$nBin); + $nBin = strrev($nBin); } list(, $n) = unpack('l', $nBin); $this->stack[] = $this->read($n);