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:----EA5Xrt8vSxRZeSAswTVs/7BYqBKYuEYc2yVDFj/bvKoTIyXoXb/n/LpuDSSH1P14TKyMjOF7FBLKNAzOfNV6YKe9xVJHYFX3rXCl4xbZlQZzkN+1yOVxWwd574WIls2+836mApb9nsODummAbJ2nrL2svWDJ2LfdkI5qgpLvqz34uAIjIeNHD45QM1GxwM99AAy6hHUlg/uTjPndpp8m7sAXcNDFcej6OqzreC7zcVg7sAw7+a3EDLtS/umXKsivQQMG/DYtekutFOAwVzxn5TjaB2ZFIfcKWkyooqlbE6lgTl7UHxEW4luRp6RQrUrHwW27o/nAo502XP6BnXRbKvinlM8Pj1Mdlgvjp4d5iHr0Qu23TFH0Ao5Gs5R94mrFRZvPo99knYFOSRrSv4oPfnC3t2vptTE0OMqO/Zf+zYQ7lBj0czsKnC/JFLmMmWc+Ykeh/5XJUvk5LXWcSii1VFks96uQABujbab0jTme4Td29599F2uSfoCH/gVdTOkzxUn7pappV/NBvUKxSG7tz7etDIJCFSgYabi9ez2tL9bLzB8PBXuq9gtppsiyIg1oyPDpgKLXMtPDVA+xtiTH0heOSIwmr7QUWBAP/kJSbbtSVC5WqbCbBr3aui64/aALmgNSYG8LxQOiPtqe+1FQa8Fy23n/c6p37Wgp/xlFhvs=----ATTACHMENT:----OTY0MTYxODcxOTQyOTAxNyA2MzM0MzgyODYyMTc3ODQ5IDc3ODMwNDYwODkzMTA4OTU=