private function buildPacket($type, $content, $requestId = 1)
    {
        $clen = strlen($content);
        return chr(self::VERSION_1)         /* version */
            . chr($type)                    /* type */
            . chr(($requestId >> 8) & 0xFF) /* requestIdB1 */
            . chr($requestId & 0xFF)        /* requestIdB0 */
            . chr(($clen >> 8 ) & 0xFF)     /* contentLengthB1 */
            . chr($clen & 0xFF)             /* contentLengthB0 */
            . chr(0)                        /* paddingLength */
            . chr(0)                        /* reserved */
            . $content;                     /* content */
    }
private function buildPacket($type, $content, $requestId = 1)
    {
        $clen = strlen($content);
        return chr(self::VERSION_1)         /* version */
            . chr($type)                    /* type */
            . chr(($requestId >> 8) & 0xFF) /* requestIdB1 */
            . chr($requestId & 0xFF)        /* requestIdB0 */
            . chr(($clen >> 8 ) & 0xFF)     /* contentLengthB1 */
            . chr($clen & 0xFF)             /* contentLengthB0 */
            . chr(0)                        /* paddingLength */
            . chr(0)                        /* reserved */
            . $content;                     /* content */
    }
private function buildPacket ( $ type , $ content , $ requestId = 1 ) { $ clen = strlen ( $ content ) ; return chr ( self :: VERSION_1 ) /* version */ . chr ( $ type ) /* type */ . chr ( ( $ requestId >> 8 ) & 0xFF ) /* requestIdB1 */ . chr ( $ requestId & 0xFF ) /* requestIdB0 */ . chr ( ( $ clen >> 8 ) & 0xFF ) /* contentLengthB1 */ . chr ( $ clen & 0xFF ) /* contentLengthB0 */ . chr ( 0 ) /* paddingLength */ . chr ( 0 ) /* reserved */ . $ content ; /* content */ }
Build a FastCGI packet

@param Integer $type Type of the packet
@param String $content Content of the packet
@param Integer $requestId RequestId
Build a FastCGI packet