PHP Class Transphpile\Unserializer

Exibir arquivo Open project: jaytaph/Transphpile Class Usage Examples

Protected Properties

Property Type Description
$idx Current unserialize string
$options Current index in unserialize string
$str
$useDefaultSerializer Whitelist of classes passed to unserialize()
$whitelist Options passed to unserialize()

Public Methods

Method Description
findToken ( $charList )
getIdx ( )
php7_unserialize ( integer $depth = 1 ) : boolean | integer | null | string
readChars ( $len )
unserialize ( $str, null $options = null ) : boolean | integer | mixed | null | string Create unserialize class
updateString ( $data, $offset )

Protected Methods

Method Description
__construct ( $str, array $options )
run ( ) : mixed Run our serializer

Method Details

__construct() protected method

protected __construct ( $str, array $options )
$str
$options array

findToken() public method

public findToken ( $charList )

getIdx() public method

public getIdx ( )

php7_unserialize() public method

public php7_unserialize ( integer $depth = 1 ) : boolean | integer | null | string
$depth integer
return boolean | integer | null | string

readChars() public method

public readChars ( $len )

run() protected method

Run our serializer
protected run ( ) : mixed
return mixed

unserialize() static public method

Create unserialize class
static public unserialize ( $str, null $options = null ) : boolean | integer | mixed | null | string
$str
$options null
return boolean | integer | mixed | null | string

updateString() public method

public updateString ( $data, $offset )

Property Details

$idx protected_oe property

Current unserialize string
protected $idx

$options protected_oe property

Current index in unserialize string
protected $options

$str protected_oe property

protected $str

$useDefaultSerializer protected_oe property

Whitelist of classes passed to unserialize()
protected $useDefaultSerializer

$whitelist protected_oe property

Options passed to unserialize()
protected $whitelist