summaryrefslogtreecommitdiffstats
path: root/31.patch
diff options
context:
space:
mode:
Diffstat (limited to '31.patch')
-rw-r--r--31.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/31.patch b/31.patch
new file mode 100644
index 0000000..026235a
--- /dev/null
+++ b/31.patch
@@ -0,0 +1,31 @@
+From 5d5c1f1e5074b69bb4bc5eb0d5be7abe06f9f94d Mon Sep 17 00:00:00 2001
+From: Marc Bennewitz <marc@mabe.berlin>
+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);