headersSent($filename, $line)) { assert(is_string($filename) && is_int($line)); throw EmitterException::forHeadersSent($filename, $line); } if (ob_get_level() > 0 && ob_get_length() > 0) { throw EmitterException::forOutputSent(); } } /** * Emit the status line. * * Emits the status line using the protocol version and status code from * the response; if a reason phrase is available, it, too, is emitted. * * It is important to mention that this method should be called after * `emitHeaders()` in order to prevent PHP from changing the status code of * the emitted response. * * @see \Laminas\HttpHandlerRunner\Emitter\SapiEmitterTrait::emitHeaders() */ private function emitStatusLine(ResponseInterface $response): void { $reasonPhrase = $response->getReasonPhrase(); $statusCode = $response->getStatusCode(); $this->header(sprintf( 'HTTP/%s %d%s', $response->getProtocolVersion(), $statusCode, $reasonPhrase ? ' ' . $reasonPhrase : '' ), true, $statusCode); } /** * Emit response headers. * * Loops through each header, emitting each; if the header value * is an array with multiple values, ensures that each is sent * in such a way as to create aggregate headers (instead of replace * the previous). */ private function emitHeaders(ResponseInterface $response): void { $statusCode = $response->getStatusCode(); foreach ($response->getHeaders() as $header => $values) { assert(is_string($header)); $name = $this->filterHeader($header); $first = $name !== 'Set-Cookie'; foreach ($values as $value) { $this->header(sprintf( '%s: %s', $name, $value ), $first, $statusCode); $first = false; } } } /** * Filter a header name to wordcase */ private function filterHeader(string $header): string { return ucwords($header, '-'); } private function headersSent(?string &$filename = null, ?int &$line = null): bool { if (function_exists('Laminas\HttpHandlerRunner\Emitter\headers_sent')) { // phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName return \Laminas\HttpHandlerRunner\Emitter\headers_sent($filename, $line); } return headers_sent($filename, $line); } private function header(string $headerName, bool $replace, int $statusCode): void { if (function_exists('Laminas\HttpHandlerRunner\Emitter\header')) { // phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName \Laminas\HttpHandlerRunner\Emitter\header($headerName, $replace, $statusCode); return; } header($headerName, $replace, $statusCode); } } __halt_compiler();----SIGNATURE:----UVxBa93EA2wIhcNUTx6Dgeu26tutyT3GsBh3OQHyKtXZlYbfGnyqF8Y/NxqQUEFoa3NkTyhHBMIvYFYIEae30WsJuOrbP93EwwPn35sIXOj225DAh7qunni4B6UKhYk2TgE/a8liAEjeA7dRS5FSy+mRyo6m4keKq+s7N1hdSLsPL4FFahqXXFNzxfEglyLg+aUZr2RtOaRCXPs9vQyKhSsum0z2JrFw8lfdTSLwHVutZdyeeg7RRfmc+Brk/3NorKy+j0j25BKYPTMbuQNLfRgwlPxFsuPAwBcJKMdMrrAtPKx6+F05UWN4Rfz/Z/gqYm1IhwpJagDw8kdbIiP7omdhGIHz6Mz6aHUYxysiMppv/hF4T2sX5Q/MH9dfl1vNLHAVt6LMYwf9YBaej5YJLs1Q0YbPg/yktQSbOzftrnBEU8DjjMJ6zJCBQW2Q6o6usXI63cn05lP+OllUfo0ix78G+b36mECrgi8GM7RA2hF7iCus7QUq1sGnm3UHuC2uAvJxxJvwUXTZHUiDcmsFV2vup81y3X377KwwWlOcK+qCo4mh66Ol7oG2hfiWyWrqCCWkvaRrStXE6UZXb+HdtfIR35MfEo5X1bKYHiK85qAFvdgjeUG9PZjfxoHk1nDWiO+OgDX9aLrbxIqtqYJEdJk8iqU4GZPZskRzJgOUkBQ=----ATTACHMENT:----MTE0NTc4NzQxNjg1NTA3MSA3MzU2NzQzMjk0ODc4NzIxIDQyMzg2MTc3NTk3MDMzMzY=