| @@ 185-191 (lines=7) @@ | ||
| 182 | ||
| 183 | return $record; |
|
| 184 | }; |
|
| 185 | for ($i = 0; $i < $ancount; ++$i) { |
|
| 186 | $record = $getResRecord($pct); |
|
| 187 | if (!isset($this->response[$record['type']])) { |
|
| 188 | $this->response[$record['type']] = []; |
|
| 189 | } |
|
| 190 | $this->response[$record['type']][] = $record; |
|
| 191 | } |
|
| 192 | for ($i = 0; $i < $nscount; ++$i) { |
|
| 193 | $record = $getResRecord($pct); |
|
| 194 | if (!isset($this->response[$record['type']])) { |
|
| @@ 192-198 (lines=7) @@ | ||
| 189 | } |
|
| 190 | $this->response[$record['type']][] = $record; |
|
| 191 | } |
|
| 192 | for ($i = 0; $i < $nscount; ++$i) { |
|
| 193 | $record = $getResRecord($pct); |
|
| 194 | if (!isset($this->response[$record['type']])) { |
|
| 195 | $this->response[$record['type']] = []; |
|
| 196 | } |
|
| 197 | $this->response[$record['type']][] = $record; |
|
| 198 | } |
|
| 199 | for ($i = 0; $i < $arcount; ++$i) { |
|
| 200 | $record = $getResRecord($pct); |
|
| 201 | if (!isset($this->response[$record['type']])) { |
|
| @@ 199-205 (lines=7) @@ | ||
| 196 | } |
|
| 197 | $this->response[$record['type']][] = $record; |
|
| 198 | } |
|
| 199 | for ($i = 0; $i < $arcount; ++$i) { |
|
| 200 | $record = $getResRecord($pct); |
|
| 201 | if (!isset($this->response[$record['type']])) { |
|
| 202 | $this->response[$record['type']] = []; |
|
| 203 | } |
|
| 204 | $this->response[$record['type']][] = $record; |
|
| 205 | } |
|
| 206 | $this->onResponse->executeOne($this->response); |
|
| 207 | if (!$this->keepalive) { |
|
| 208 | $this->finish(); |
|