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.

bool
$_isLittleEndian= 'null'
null
Details
bool
$_isPhp6= 'null'
null
Details
array
$_options= 'array(
'protocol' => 0'
array(
'protocol' => 0
Details
array
$_quoteString= 'array(
'\\' => '\\\\''
array(
'\\' => '\\\\'
Details
_checkProtocolNumber(
int $number
)
:
int
Check and normalize pickle protocol number
Name | Type | Description |
---|---|---|
$number | int |
Type | Description |
---|---|
int |
Exception | Description |
---|---|
\Zend_Serializer_Exception |

_convertMatchingUnicodeSequence2Utf8(
array $match
)
:
string
Convert a unicode sequence to UTF-8
Name | Type | Description |
---|---|---|
$match | array |
Type | Description |
---|---|
string |

_decodeBinLong(
string $data
)
:
int|float|string
Decode a binary long sequence
Name | Type | Description |
---|---|---|
$data | string |
Type | Description |
---|---|
int|float|string |

_hex2Utf8(
$hex
)
:
string
Convert a hex string to a UTF-8 string
Name | Type | Description |
---|---|---|
$hex |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Serializer_Exception | on unmatched unicode sequence |

_isArrayAssoc(
array $value
)
:
boolean
Is an array associative?
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
boolean |

_load(
string $op
)
:
void
Load a pickle opcode
Name | Type | Description |
---|---|---|
$op | string |
Exception | Description |
---|---|
\Zend_Serializer_Exception | on invalid opcode |

_loadBinGet(
)
:
void
Load a binary GET operation
Exception | Description |
---|---|
\Zend_Serializer_Exception | on missing GET identifier |

_loadBinPut(
)
:
void
Load a binary PUT
Exception | Description |
---|---|
\Zend_Serializer_Exception | on missing stack |

_loadGet(
)
:
void
Load a GET operation
Exception | Description |
---|---|
\Zend_Serializer_Exception | on missing GET identifier |

_loadLongBinGet(
)
:
void
Load a long binary GET operation
Exception | Description |
---|---|
\Zend_Serializer_Exception | on missing GET identifier |

_loadLongBinPut(
)
:
void
Load a long binary PUT
Exception | Description |
---|---|
\Zend_Serializer_Exception | on missing stack |

_loadProto(
)
:
void
Load a proto value
Exception | Description |
---|---|
\Zend_Serializer_Exception | if Pickle version does not support this feature |

_loadPut(
)
:
void
Load a PUT opcode
Exception | Description |
---|---|
\Zend_Serializer_Exception | on missing stack |

_momorize(
mixed $value
)
:
void
Add a value to the memo and write the id
Name | Type | Description |
---|---|---|
$value | mixed |

_quoteString(
string $str
)
:
string
Quote/Escape a string
Name | Type | Description |
---|---|---|
$str | string |
Type | Description |
---|---|
string | quoted string |

_read(
mixed $len
)
:
string
Read a segment of the pickle
Name | Type | Description |
---|---|---|
$len | mixed |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Serializer_Exception | if position matches end of data |

_readline(
)
:
string
Read a line of the pickle at once
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Serializer_Exception | if no EOL character found |

_searchMomo(
mixed $value
)
:
int|false
Search a value in the meno and return the id
Name | Type | Description |
---|---|---|
$value | mixed |
Type | Description |
---|---|
int|false | The id or false |

_unquoteString(
string $str
)
:
string
Unquote/Unescape a quoted string
Name | Type | Description |
---|---|---|
$str | string | quoted string |
Type | Description |
---|---|
string | unquoted string |

_write(
mixed $value
)
:
void
Write a value
Name | Type | Description |
---|---|---|
$value | mixed |
Exception | Description |
---|---|
\Zend_Serializer_Exception | on invalid or unrecognized value type |

_writeArrayDict(
array $value
)
:
void
Write an associative array value as dictionary
Name | Type | Description |
---|---|---|
$value | array |

_writeArrayList(
array $value
)
:
void
Write a simple array value as list
Name | Type | Description |
---|---|---|
$value | array |

_writeObject(
object $value
)
:
void
Write an object as an dictionary
Name | Type | Description |
---|---|---|
$value | object |

_writeProto(
int $protocol
)
:
void
Write pickle protocol
Name | Type | Description |
---|---|---|
$protocol | int |

_writeString(
string $value
)
:
void
Write a string value
Name | Type | Description |
---|---|---|
$value | string |

serialize(
mixed $value, array $opts
=
array()
)
:
string
Serialize PHP to PythonPickle format
Name | Type | Description |
---|---|---|
$value | mixed | |
$opts | array |
Type | Description |
---|---|
string |

setOption(
string $name, mixed $value
)
:
\Zend_Serializer_Adapter_PythonPickle
Set an option
Name | Type | Description |
---|---|---|
$name | string | |
$value | mixed |
Type | Description |
---|---|
\Zend_Serializer_Adapter_PythonPickle |

unserialize(
string $pickle, array $opts
=
array()
)
:
mixed
Unserialize from Python Pickle format to PHP
Name | Type | Description |
---|---|---|
$pickle | string | |
$opts | array |
Type | Description |
---|---|
mixed |
Exception | Description |
---|---|
\Zend_Serializer_Exception | on invalid Pickle string |