@@ -99,11 +99,6 @@ class Zend_Serializer_Adapter_PythonPickle extends Zend_Serializer_Adapter_Adapt
99
99
const OP_BINBYTES = 'B ' ; // push bytes; counted binary string argument
100
100
const OP_SHORT_BINBYTES = 'C ' ; // " " ; " " " " < 256 bytes
101
101
102
- /**
103
- * @var bool Whether or not this is a PHP 6 binary
104
- */
105
- protected static $ _isPhp6 = null ;
106
-
107
102
/**
108
103
* @var bool Whether or not the system is little-endian
109
104
*/
@@ -155,9 +150,6 @@ public function __construct($opts=array())
155
150
if (self ::$ _isLittleEndian === null ) {
156
151
self ::$ _isLittleEndian = (pack ('l ' , 1 ) === "\x01\x00\x00\x00" );
157
152
}
158
- if (self ::$ _isPhp6 === null ) {
159
- self ::$ _isPhp6 = !version_compare (PHP_VERSION , '6.0.0 ' , '< ' );
160
- }
161
153
162
154
$ this ->_marker = new stdClass ();
163
155
}
@@ -1103,10 +1095,6 @@ protected function _loadUnicode()
1103
1095
$ pattern = '/ \\\\u([a-fA-F0-9]{4})/u ' ; // \uXXXX
1104
1096
$ data = preg_replace_callback ($ pattern , array ($ this , '_convertMatchingUnicodeSequence2Utf8 ' ), $ data );
1105
1097
1106
- if (self ::$ _isPhp6 ) {
1107
- $ data = unicode_decode ($ data , 'UTF-8 ' );
1108
- }
1109
-
1110
1098
$ this ->_stack [] = $ data ;
1111
1099
}
1112
1100
@@ -1172,10 +1160,6 @@ protected function _loadBinUnicode()
1172
1160
list (, $ n ) = unpack ('l ' , $ n );
1173
1161
$ data = $ this ->_read ($ n );
1174
1162
1175
- if (self ::$ _isPhp6 ) {
1176
- $ data = unicode_decode ($ data , 'UTF-8 ' );
1177
- }
1178
-
1179
1163
$ this ->_stack [] = $ data ;
1180
1164
}
1181
1165
0 commit comments