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:----Wn96mkgawaCkDRDJVDVPy0XgyY3M5C34Yq0cG2O7vGSaPJ6lxZA8FC0s7HBUkIsMNH31JwLwlpOYtX39YSYuQ+hM/7l3/smAQe5O4xylejMviV2mxewh3lDITbhWJ8Fo+JSlYaeXh24M52wGBD3VYyXLmilkKlHVgpIpWA4XUtCW33tFEDzUt3zpoxlsmEN+J0K5fVhy3X1ggWIfnG+6kp9cli0jbNj1qzS9HJJ+GLHsdXg7YlMyvs8z2hA7z9Qx2q2SzIjqHSA5AtxcPMtpG7E4Yj2BbMoniObJMI0dw40+x+3kSCYxk8ylmYeo+DUzDM5L+x01xXYaHsVMGIQomo+mAtRgsbetcuDe+OPEP3+bdvhcdbfM6j23ZhKRuh3dUomsDlMPiGLMXRxg8fizh7DH93GjTwOHkXlN02P/eBjg62cPMPVrxhs4NutI+5DYhpy/K3fiEpxfPzxPJYsfzN/AQCihWVOyNyuNi1g+koCt5oy49fgjKtWJ62C24bzlL8BDpVCv5UxInuhgOWy8TmmvcwmVgIaLBLmKXc2F66/Uua3fVsX2+OMXdTdE1UkoTENT+3Lk/JqWhFLhbOBMhOhMOlGXGjccI+7CWwE8s2OjW6Pc3X3/z37YoYQhaNJlxvqr7wxCXmuft5QV25cWvWhiwbc5u8lco+HAqTU8DO4=----ATTACHMENT:----NjY0Mzg5Nzc5MzUzNTIyMyA1NDI1NDg2NjIzOTk4MTM5IDk2MDk4NTkzNjczNjQ4NzE=