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:----bcy7QO91C5DXH5koTKL9u21hch/xJFiHPp/RZZOknMiekIk+hojDH4w3V0U1XKV8qvjGgcwkFfW+pdYHdaiuDALBodtIRV7N4ub+uaF4Ttvfs3qgz/4qDAFVDoHS7pL8M0ZS+6Ru5f203v1u8cu3Pex4oebsKslwmD/r5XItmK5TLYcJjhsOjqQBMXzlLPDtuqfeNtBeKeVBqfmLz79/aei+V0gz10Kfosc/GFDBP1FT3Tw4q7IK/XUxDcMjkCpDNDtOH+l9Fjwt707KYX/Gt0IXplODvZsHNsMI9RAt+Dt1VZNLIMnasG8JiJG1YwYwrFoVE7/OjSHOpih4Pi0C9REcQ/NwPZNvyANxPegeiJdLPoSbd476EVL1xVJgllBJ9BAXCNthKCInXXekNkG/vi8IDa1CvkNLItGowBQX2YxpsOKGh8i457YX0gPp64aPQsnHFrOYQCDsp56DSLpS+W1zE1Fpdu2DZUVATQ21wLuE8LuCH676WgvIP8elT/mOmZXPBWMbQMedZSSz6suEAOUeaz4R1uHJzzQeITJgWqmDXf28OUYjnvgCcn2hNHGlmYlweTJbfOQ5VuhbQ93mf75vg4lAw7he7GiaETqUBzT1UUTpFzi3NGNYn/9BwL6/t84qyUsoXXIORsScJ94is2w9oYtCkRC1iqmgxL4qoMo=----ATTACHMENT:----OTExNDM2ODQ1MTIwMzUwOCA0NjMwMDUxMzkwMDM1ODg4IDg4Nzc1OTYyMzUxMzE0MDA=