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:----mExAsABllDm2iqEgg0ggNOzdYNj8Uo0AWrGbOSeiYzdL38Sil9ADwebwrCl9yk6AlGDaGggiXA2CsOnTDOVKxmYbEeI5PK4ge9GbzvWCsXFD/oKaJowNAkXfZI+I730S2NieahRDMkbylvRoDxoggG/4y62psYjDm+mKoIq932/UpernaOnY+ZkZ/S4s27W/UCHqw0ikoczd8rdYvDwOnRvuh/5I/A1qpyOIrI6KbajJF/9sc4aoxwDvIZuEMNyxzDEZ0FW7kX+e9HVT2TR7bpaaTyB/2c+Y9+5cd8z6ghHX2rCIYULVAFMxFu7eW27BdF0Kw6DuqXF1D948N2QBvrtlnaSZq06FWRqyy8oERIlQ+HbOAkefAcwlThDBpC7hI6xeafa6xU9tmMi9Swlx379uBA1ytPujghX/3zGTA6Qp7/sDe1WqjTtf8obTDzwCVu+5HieuzRfwH2RV2NQ4hHR+k0KEdt1paldbTY56K4x/rCQMXHigl+2tpH0ttxpQ8XpF6UGvTzgBdmlnL8g+z+jTLTa+nqJkoCTDQ6g4mMBBuVM0MYUJi5PznFN2fcAN127DhOVClheOh54t8usMr8wLBz9NqsPWxRjHhYeLQx1lYKIRQCL7GLaP5un4oKt+YG+36xek2LvU7HRKP6UCFK4U79gWzYRxbu91JjZ41KI=----ATTACHMENT:----NTAzOTY5NTc3MDgwMTY0IDIwNTcyMDQyNDQ5NDQ1NjEgMTkwMzg3OTg4MTM1NjE2MA==