PHP Class Protocol\FCGI\Record\UnknownType

The set of management record types is likely to grow in future versions of this protocol. To provide for this evolution, the protocol includes the FCGI_UNKNOWN_TYPE management record. When an application receives a management record whose type T it does not understand, the application responds with {FCGI_UNKNOWN_TYPE, 0, {T}}.
Inheritance: extends Protocol\FCGI\Record
Show file Open project: lisachenko/protocol-fcgi Class Usage Examples

Protected Properties

Property Type Description
$reserved1 string Reserved data, 7 bytes maximum
$type1 integer Type of the unrecognized management record.

Public Methods

Method Description
__construct ( $type, $reserved = '' )
getUnrecognizedType ( ) : integer Returns the unrecognized type
unpackPayload ( Record $self, string $data ) : Record Method to unpack the payload for the record

Protected Methods

Method Description
packPayload ( ) : string Implementation of packing the payload

Method Details

__construct() public method

public __construct ( $type, $reserved = '' )

getUnrecognizedType() public method

Returns the unrecognized type
public getUnrecognizedType ( ) : integer
return integer

packPayload() protected method

Implementation of packing the payload
protected packPayload ( ) : string
return string

unpackPayload() public static method

Method to unpack the payload for the record
public static unpackPayload ( Record $self, string $data ) : Record
$self Protocol\FCGI\Record Instance of current frame
$data string Binary data
return Protocol\FCGI\Record

Property Details

$reserved1 protected property

Reserved data, 7 bytes maximum
protected string $reserved1
return string

$type1 protected property

Type of the unrecognized management record.
protected int $type1
return integer