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 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 header($headerName, $replace, $statusCode); return; } header($headerName, $replace, $statusCode); } } __halt_compiler();----SIGNATURE:----MI/tZtNSZu999Dy3f6WHst6U53QW7X6E/7UCOpRZAzrKZHNzZ5B4SNkyBfas8j2SCZgaOsk1J6fsZXvJLkDz17w8VgauBL2kf3QNOBrxeUidWIsBfT1IrAy4N+6Mfn1Czbfu44e0dR+z0vsxRBCz9Jt1mMBXltdTy8csVnEfKMQaZvhNgyz40CMqVVKIRvdUUAQ8uKZoC1rEB4SYI4XLZhuUSqsn6YIrX1LbJI5sV3mQxowP9CALtY3Z4ctCePoS0JlKLFC/i1clyBi/kscRJQb0fY0BGGbyC7ynHr5gn6nr2qqWLVmo0GuHIFKXZD832ANzQmH22+bxUHFZrSO8BGIIi1DH7ABiSEJprlsQmWF6qYWrHNuNo6SJwFHZApVYLPcEq/D0ZKD6fE8GK+Zataz/xTeOSsDGs1q9LLd5uc4TfJvH7HJ3K1LvHhGryI9hO5ION3kzw+cWiAcVnmTStZGyVDFOYENDjvwT54iS1byTiEBZ2kztDOCHsMxRg+N2milTXijvN+Fwez9IA9DDrEQbILhKRPdKxK3Sdy4XvvaoRQb913Yofs9ZhruO3U4pXL/lzU7jYQl+xMzD1GxV+xSrF4aBI5rWnhqCDfsqaDbps6oTKmLOReUTs04M769LDH7u9q1aYkh82Jgcw/xsmd1exufd/ImBsoW1iHRNpDo=----ATTACHMENT:----MzI5ODk2MTM2MDcyODQwIDI3MjgwODk3NzkzODM0MjQgNTE0MTU5NjYyMjY0MTg2Nw==