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:----nHjcAde/9J9VyPBVv/kZahAP6+N4BdlVzl2LHgOYWZEg15PAYjquke21gVErG7wckbQ4R9oZ4eIE3XDmOhU0TGmJKfx2X9qgBy2rsifDyNhsWe/wVQNBvhygG7Lq9nYV5nDbOgbUfKYF2q/3qCqv4r3z1dg3hYjJyNZuA3ZXJ9S4L+90QeQKyVt+al10B6Obhjb+dyUJSAkYmb6maYhjFWHwI7b7IUCnsrjI8Ep8BpjwgtOIiZEDe8rxy67taLXXrCYLCmqec+TOXbHgKZCOqIT9UnsvcoCsRIwv+weDXqtE4qkyzstsh52LuM7+c3paRPjTR9vcShUT1GJBOaOhHsqPBrJcrtvP7lCkpsbsV7wIoZDnJfd5r41CQcpIOJLgguVzH1YnrhIPt01pcM5VXlvDCDR0tY0/cHWQwBugp+o20zdi0tVEd0l9MVblJ0kkPMNSh9hhsyv0/lAlaigUIYJHwPz9ZpAOhznf+kZhtG8OFQZRcIqFsEiDPTn48lQPDESa4nKmoXAjnJ5p3VvU+tg5GZDEYos8dA4QhueNsBVt8SiTcZZbLfmHgF7hcYnhdZH4Qd1DBkyxwB4ydJi0E/cSjE7lLAm9//MN1yIedvvQDFqJadnHUHsDQr0482oHO65ORozzRJwjOoQz/v8HXPc2q4DSpKcdpsLnuILPT1w=----ATTACHMENT:----NDcyNDgzNDM1ODYyNzM4NyA3NDc4MjkxMTMzOTkwMjgxIDY4NTk1OTM3MTM5NDg1OTQ=