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:----oyg3T4kijaJpJbm/ZhJsM0ovDo/Wo/4yxFJQZrFOay7bFHmU5W4geBLMF24vHGFnEvjc6XdChdC1vb2VVaUudmyeayDuuy2xT8h6/Jnv+GTSpoBxC+29dK/5RdJkFb94W2cFbOS1gKvua413Pti6R2zFR+iBEtVZSvrzD13hlsBleK3PckEMAubC7PYtsAIAQ6e0ew/i1pR2NpY5eSZzcbsA/WlWg0v8cE6UP/PUiXHUXaRTksVnYPFjSX+N9AasJf0EZTYUr6yz2rL7YRqc2CY57v5COVMHVAGPj+fFmwNeEnKt50RxcbwTZa3ewHZZkZyDaFXmQAbgrAvly6uQ394O/erRmYBB2a/adGBmvrQ6fNsoW8dajP2sQolHQRL7bKqZvQsDnIF+87ofImAm91hZClVfLECT165UmFklssAmnSVyyvkT4O2InHOv2EXXekh+nTZYyJFGWY6/49mOUB58oxvjCi4K85o89KYaPeSzdVz8vNKWHalumJLg0qMLYQynoppPRBmABq/SvwLw1++RMU6bv+KJdEmWBcNqiW9/8TuGAxpB2gNrU+Zf+tFHw6oXua9o5tf0iJYKpK8e8bhadzaEFIqUKyrLjz39D6OrRYKcCuum3TsVaEnPF/rxDFiLf253Q5z6KkCJbEoZ9OPQClLoCIc+r3pjIlt+ido=----ATTACHMENT:----NjAyNTg3NjU4NjcwODcwNyAxNDYyNTk2OTQ3MzQ1OTU1IDQ5ODg3NzU0NzQxMTE4NjU=