blob: 026235a3e19abebfdc1cfbcf00403e5d4be8d942 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
|