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:----TUYp920VfK8yoGveX8HrJlsPkEt0qZdrr0SnlidtL54NceNEo4uPvW+ydwGZnJkw1qTBsJj2AV29W9flMIPdlx5QfmtDsgotTiqyZr4lODaZ+Y/gUngf9kvruGs4nqAM4DxB3efP+vxec/yvlLc4iazkRaUdMhszslwP+N25fFxctREM3FdTR67oeuqjwVUBymc18s1GpeZ8BvNSxYJhRB7YWJHbovzejFwbxJfMPWApxBwPBUXgHWgA1dDWTKjrzrKoB1k44WMDghZJpgMQz6CEp/Rq0IsOmwTPXkV9Q9ML4y+VyOgF1VfisWM1w2wPa1uw8RqCCHFzhVMp0il7Ih10y5TlZj+VLMIsxDGf2LfB6uSBKG+thphW+qFF08Ull2SpC4qG83qb/DNAbKJPfhJ7AWq8Vdgm2P4UX321eIGHBw8PTEwLMXRLBePpnBGP7+w+YTIKB5YBbnXDw5wHX6Lvu4x1Bm1iRkn4Kfb/OhH9CX88pu4RDaGQoPmME1Aqv1nFBgJTTkGaR15DmaXg3mBXp8/R3ea49l9k/R6ZOQEI5BIO4UtIDb1mzc1whoBw4L4tGhRsBYL8bRxD0R/p0kuWl0QOn8dWiWbQNAB78CDeUTyAYmBc1lp3l4rVFMpjr53HkvUfwCcvye8kkv/D74jrKDz47A7CvLYfM07OZRA=----ATTACHMENT:----NTgwMzc0MTc4MDczMDIzNyA3Nzc0MzI3MTExMTc3MzI1IDc4OTM4MTQ5ODg3MzU3NzE=