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:----iU7dduxH0qjssER5fQZeCl5Jk1yL/j4n6l+Qab2LIPP1rS1Pj8d/Hp2Gyqw/tuBCb912xLNZfNXBPmoOGP58/dQFekhU+pL6VH34p4t6d//dDaWPXGr9XZi9PxvSSVYZrN030URwBckHj20FxQwn8BWuFcMj561i3xuP/OiRuonKvJOBzwIhfwssUwPz8xeEa6ICiNTkE5P2S7m8o5VfJRE4ux3ffJZyJ43Hc2Hz8ZDa67uDOg5wZTrgWSJ0WW5UpCiZUrW4WlRfYODIms/Vm75EYPALZkYI2Y6dxZ2y90u/D1LWdYiMopJZClNi0K0ladlwprLsqbJj2OWF8VdeBqp2PGvFlYyLAPl+xQokQJDeGpw/4eFBNyP18gIdF9bL3CEOZ4yAnVC16bAa+/MTqy6nlzZJZiU3yrnbPTTZJubZ0sORgd0oO+gmwYK73E5XAqByq6Zn5YKvKmQ/vP+NtWKwibA5kUcYqafhNa4zUyl4uwaxhX0cqqr7vTfIHsFPt/x1+eH/KnEqRuMZY6pgl6pA8QzYorcfyB2/u9SjljWMGmp3OEhh/O6j1WJXYTuX5mp+15e04hlmEVOU+DXhNtSX2+3vCy4o59yogdAdpXiH8IViJyYBYfo9au+5dB8bUbnhzDxw8b+sfWwpvM3wmhXj5DWFBG+FVh85BpWH9es=----ATTACHMENT:----MjE5NjE5MDE3NTE1NzYyNyA3Mjk5MjA5MTcwNDU3OTQ0IDk5MDg5MTQ4MzI0MzY5OTY=