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:----QKWA5LvWi2M237S8iZwScZztRh+RL9+LzIYpMUydMU0nLJhS0YXoYym3FEebGSMyfKyFhdppfxeMsKznGGwvKiy2TIgQfeHEKbBm71ZdUdtdnwCoREdd6+fLfv/RxH+5KmZgVvlMkTrCgG7VoQmNjLCTGl2HKedUq0MHHSXrF772/NnExvAIjPyKR/AVd8TZ3ZDp5vzVtRDpHUJqvDKAiR9oCk4rnoMpjLwDDoDYgvrqFxOb/EuCmuLJD4hSWHWZdFhlw9dT00IQHwHPK66BGMbGvavOI8yXPGV1Z3ingwxYwfUFDmvryInreKNViP6yjTBkzyw7wbqMiWr8xX2H0U1N1RGcdZd/QcH6TMAYlYnekifKa7RSJVcaY3JZ8D68omdOMCKahLkl5AUTj/xnymxBHd7Pc70PRdUsKU36A5Fj43EMQYk2AN9kocmRM8GOZPOKxlIKLgAnMqufvTkKwruV640zSPKYcU3RBzCMytH1OpnCekjgDT606om3k1W1ZB6TBdumYC/WRoo26E8u7g2rv54bPLHI+ag58ATz63IPBQm1rQ1dtgNtjdXv514ztxbtYvs1HZ2syzT2qO2RYEOuLgENzgpskENnx1plSWLBMg98ALkTy7knpEEfxVgqiUQD97zc3ozCTM80SRK9/B+LP9XcTN16B0L9xAciZJk=----ATTACHMENT:----NjA5NTY0MDEzNzE3NDk0MCA4NjkxMDIzMDk3MDU1OTIgMjUxNDIyMjEwNzE5NTQyMQ==