Lines Matching refs:resp
672 $resp = $this->decodePacketHeader($packet);
673 $resp['content'] = '';
674 if ($resp['contentLength']) {
675 $len = $resp['contentLength'];
683 $resp['content'] .= $buf;
686 if ($resp['paddingLength']) {
687 $this->transport->read($resp['paddingLength']);
689 return $resp;
712 $resp = $this->readPacket();
713 if (isset($resp['type']) && $resp['type'] == self::GET_VALUES_RESULT) {
714 return $this->readNvpair($resp['content'], $resp['contentLength']);
833 * @param $resp Response
838 private function fcgi_stream_append($resp, $type) {
839 if (isset($this->_requests[$resp['requestId']][$type . '_finished'])) {
842 if ($resp['content'] === '') {
843 $this->_requests[$resp['requestId']][$type . '_finished'] = true;
845 $this->_requests[$resp['requestId']][$type . '_response'] .= $resp['content'];
884 while ($resp = $this->readPacket($readLimit)) {
885 if ($resp['type'] == self::STDOUT || $resp['type'] == self::STDERR) {
886 if ($resp['type'] == self::STDERR) {
887 $this->_requests[$resp['requestId']]['state'] = self::REQ_STATE_ERR;
888 $this->fcgi_stream_append($resp, 'err');
890 $this->fcgi_stream_append($resp, 'out');
892 $this->_requests[$resp['requestId']]['response'] .= $resp['content'];
893 } elseif ($resp['type'] == self::END_REQUEST) {
894 $this->_requests[$resp['requestId']]['state'] = self::REQ_STATE_OK;
895 if ($resp['requestId'] == $requestId) {
906 if (!is_array($resp)) {
928 switch (ord($resp['content'][4])) {