PHP Class Transphpile\Unserializer

Show file 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 property

Current unserialize string
protected $idx

$options protected property

Current index in unserialize string
protected $options

$str protected property

protected $str

$useDefaultSerializer protected property

Whitelist of classes passed to unserialize()
protected $useDefaultSerializer

$whitelist protected property

Options passed to unserialize()
protected $whitelist