Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
OP_MARK = '('
OP_STOP = '.'
OP_POP = '0'
OP_POP_MARK = '1'
OP_DUP = '2'
OP_FLOAT = 'F'
OP_INT = 'I'
OP_BININT = 'J'
OP_BININT1 = 'K'
OP_LONG = 'L'
OP_BININT2 = 'M'
OP_NONE = 'N'
OP_PERSID = 'P'
OP_BINPERSID = 'Q'
OP_REDUCE = 'R'
OP_STRING = 'S'
OP_BINSTRING = 'T'
OP_SHORT_BINSTRING = 'U'
OP_UNICODE = 'V'
OP_BINUNICODE = 'X'
OP_APPEND = 'a'
OP_BUILD = 'b'
OP_GLOBAL = 'c'
OP_DICT = 'd'
OP_EMPTY_DICT = '}'
OP_APPENDS = 'e'
OP_GET = 'g'
OP_BINGET = 'h'
OP_INST = 'i'
OP_LONG_BINGET = 'j'
OP_LIST = 'l'
OP_EMPTY_LIST = ']'
OP_OBJ = 'o'
OP_PUT = 'p'
OP_BINPUT = 'q'
OP_LONG_BINPUT = 'r'
OP_SETITEM = 's'
OP_TUPLE = 't'
OP_EMPTY_TUPLE = ')'
OP_SETITEMS = 'u'
OP_BINFLOAT = 'G'
OP_PROTO = '\x80'
OP_NEWOBJ = '\x81'
OP_EXT1 = '\x82'
OP_EXT2 = '\x83'
OP_EXT4 = '\x84'
OP_TUPLE1 = '\x85'
OP_TUPLE2 = '\x86'
OP_TUPLE3 = '\x87'
OP_NEWTRUE = '\x88'
OP_NEWFALSE = '\x89'
OP_LONG1 = '\x8a'
OP_LONG4 = '\x8b'
OP_BINBYTES = 'B'
OP_SHORT_BINBYTES = 'C'
$_binary = 'false'
bool $_isLittleEndian = 'null'
bool $_isPhp6 = 'null'
$_marker = 'null'
$_memo = 'array'
array $_options = 'array'
$_pickle = ''
$_pickleLen = '0'
$_pos = '0'
$_protocol = '0'
array $_quoteString = 'array'
$_stack = 'array'
__construct(
$opts
=
array
)
:
Constructor
_checkProtocolNumber(
int $number
)
:
int
Check and normalize pickle protocol number
_convertMatchingUnicodeSequence2Utf8(
array $match
)
:
string
Convert a unicode sequence to UTF-8
_decodeBinLong(
string $data
)
:
int|float|string
Decode a binary long sequence
_hex2Utf8(
$hex
)
:
string
Convert a hex string to a UTF-8 string
_isArrayAssoc(
array $value
)
:
boolean
Is an array associative?
_lastMarker(
)
:
int
Return last marker position in stack
_load(
string $op
)
:
void
Load a pickle opcode
_loadAppend(
)
:
void
Load an append (to list) sequence
_loadAppends(
)
:
void
Load multiple append (to list) sequences at once
_loadBinBytes(
)
:
void
Load arbitrary binary bytes
_loadBinFloat(
)
:
void
Load a binary float value
_loadBinGet(
)
:
void
Load a binary GET operation
_loadBinInt(
)
:
void
Load a binary integer operator
_loadBinInt1(
)
:
void
Load the first byte of a binary integer
_loadBinInt2(
)
:
void
Load the second byte of a binary integer
_loadBinPut(
)
:
void
Load a binary PUT
_loadBinString(
)
:
void
Load a binary string
_loadBinUnicode(
)
:
void
Load binary unicode sequence
_loadDict(
)
:
void
Load an associative array (Python dictionary)
_loadEmptyDict(
)
:
void
Load an empty dictionary
_loadEmptyList(
)
:
void
Load an empty list sequence
_loadFloat(
)
:
void
Load a float value
_loadGet(
)
:
void
Load a GET operation
_loadInt(
)
:
void
Load an integer operator
_loadList(
)
:
void
Load an array (list)
_loadLong(
)
:
void
Load a long (float) operator
_loadLong1(
)
:
void
Load a one byte long integer
_loadLong4(
)
:
void
Load a 4 byte long integer
_loadLongBinGet(
)
:
void
Load a long binary GET operation
_loadLongBinPut(
)
:
void
Load a long binary PUT
_loadMark(
)
:
void
Load a marker sequence
_loadNewFalse(
)
:
void
Load a boolean FALSE operator
_loadNewTrue(
)
:
void
Load a boolean TRUE operator
_loadNone(
)
:
void
Load a NONE operator
_loadProto(
)
:
void
Load a proto value
_loadPut(
)
:
void
Load a PUT opcode
_loadSetItem(
)
:
void
Load an item from a set
_loadSetItems(
)
:
void
Load set items
_loadShortBinBytes(
)
:
void
Load a single binary byte
_loadShortBinString(
)
:
void
Load a short binary string
_loadString(
)
:
void
Load a string
_loadTuple(
)
:
void
Load a tuple
_loadTuple1(
)
:
void
Load single item tuple
_loadTuple2(
)
:
void
Load two item tuple
_loadTuple3(
)
:
void
Load three item tuple
_loadUnicode(
)
:
void
Load a unicode string
_momorize(
mixed $value
)
:
void
Add a value to the memo and write the id
_quoteString(
string $str
)
:
string
Quote/Escape a string
_read(
mixed $len
)
:
string
Read a segment of the pickle
_readline(
)
:
string
Read a line of the pickle at once
_searchMomo(
mixed $value
)
:
int|false
Search a value in the meno and return the id
_unquoteString(
string $str
)
:
string
Unquote/Unescape a quoted string
_write(
mixed $value
)
:
void
Write a value
_writeArrayDict(
array $value
)
:
void
Write an associative array value as dictionary
_writeArrayList(
array $value
)
:
void
Write a simple array value as list
_writeFalse(
)
:
void
Write a boolean false
_writeFloat(
float $value
)
:
void
Write a float value
_writeGet(
int $id
)
:
void
Write a get
_writeInt(
int $value
)
:
void
Write an integer value
_writeNull(
)
:
void
Write a null as None
_writeObject(
object $value
)
:
void
Write an object as an dictionary
_writeProto(
int $protocol
)
:
void
Write pickle protocol
_writePut(
int $id
)
:
void
Write a put
_writeStop(
)
:
void
Write stop
_writeString(
string $value
)
:
void
Write a string value
_writeTrue(
)
:
void
Write a boolean true
serialize(
mixed $value, array $opts
=
array
)
:
string
Serialize PHP to PythonPickle format
setOption(
string $name, mixed $value
)
:
Zend_Serializer_Adapter_PythonPickle
Set an option
unserialize(
string $pickle, array $opts
=
array
)
:
mixed
Unserialize from Python Pickle format to PHP