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:----RB/Xdv4vRUubRqnGAqNw2SanFHBP78fuaKHXV6IW1EMVMMCdlQgn+ZEZr5WydzWPmmrwIBW3M5ypIQgzQVSc3qL20o1vu0Oq2R1y5VOEl+Y9pIkqFRdzI2c5T+xt/L+CW1owVMgxf5eKE/14F8Bc4uuzYgXsFOBSTe/y260dg2tQTQCI+Sa7wyJzXOxfs7l8YGlRQNGAFv5FDkVuSwmQ1N34jp1wqC2DnlaEjfzo//6pOIOqud3//OWlFzXxp/6bK/Cuf/WoLcWN5cCq40Swplj5QTDSS6CqV3IRz3E9jsd5xV5CK5w31h7YPvQjW2QEw6TNsPQx2f0a5PG8wOIiY0rI+A34SF6BO4vTcxuE1hB6a/i9dr57OBV+Aukk0w3b0I/0o5PBrSqPWaRf6JgMiPf4Y3KHeQ9/hOmnuhMRB5WPRQwRK1wF+3918daWzEBUoZs+LDcsTjNTVIPrArvB69xw4qb840x6lUBgr+tN0HIcpJrluX81CY1VbiS71UfZ5dVu2NQMc5kQ4BAZjyb9kpX2zpk8vN4cYNN5g0Lq/BqMwya2xB9E03iEbd9jav5KWmrFjlOzsypHrt2B1N9b9VfnZyAfzYi6lVlLGWjrB/+TuYRTvqY+6tBhBxm964Ef0ciF8gVA2yNCEgasUEQUZClGVe2tcCismW1piEWINLU=----ATTACHMENT:----Njc0MTczMzQ3NDM4NDAxNSA4OTY0MTM4NTU0Mzc3Njc3IDc1MDU2MjYxMDg0MzIxMTc=