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:----DCj3unQIjvoI687qvomsPkG5oU9jcgMPCfDcB78lft5tB+pscjWocc5NVmv+RyyuRO1KY7a+IvQFj1AkcTTOV3/Ml2OdATzuAPGREfQ0SmI0yY6+bvJQ3weztk6rrMCyw1DW7T1YYN1tL8Y0jAiKI+YLQQjMdZArSWa950k1zW5I6ivQhWtEVbzZy1PIrrtnV0BcdURJGkukwZnrErp0yx/GfpOnB13QAa1vNRCCt7+yMFrZj5bX8oFdVcB5WBW7L3a7IB1SB1hK6s3SEosMIxLB2Y9KaO6MU0t/Zm8UePgp/vRcNVOT5cXnbBtQhk910d5JW/KMgWrjtohwujz4hhwk/pHG/z9TNtBCNdxDzIqnFWRoi7qWMkIdTpoaSg7a07ISHO+y5cZ3wtTr2Ufww3w7lKYj2yLQSsll9P7pbIEiTR5uU0g/awHjMJWuAVwAdupdQC4sQVL5C8lA1lU1bciB4B9+2PibAjcsbQ6r1VeuVuQdGqUNdxlU1+8zgI/aYhg6cVtmuDt9do5wwE/UH3MF/ZWP4j5EZ54xqkEPCS6K3V5qi8xGEMDyqnmSRhtiMlq9uL5SS3GoKhj9F+cBoxoQ2lnhHtC98ZgjGQaOLtz/25ApQ8OEmDg94tGziVbFx9acAEW5sRX7gfjxEeUCXimzQU5BfZWNJYd9ShyEge8=----ATTACHMENT:----NTI5NTQwNTMxNTcyODI1MSA1MDM0ODIxMDk1NjQ2OTk4IDg4ODY1OTEzNDQ0MDUxODI=