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:----Zy9mRqIbaq/WR1QCZlV1pGYZzyIU0ZNfzJjHlQ3XqS8Q1jxDSfnBZtHixfwki+oz3T6xpickfW9g+NPgkHpBadBbySRzfK8htu1KeJoaiYP5UcienfXB+GUM/pjJZtM+uShStLTr8Sv4apiIIu2iT4L+6pANRyWgwubNIS7zhEvM8OkousQATx4x6MzdBu3H0+U08DStSEZdKkoam/LuNu/QMBDuisE9B62O0pY8fEdnJMFpUsg4eiIY/e+LgNKSMZMKObsQAdT3cLPIeuG4ldrOxp1NAJB/saVZjLTX0pWZjkZdOTRxDYjhUwtM5+UAM6mgdZTfbhL3BmzUfqfW5L7pMIpaWODidwJr7Z2sOTEZraWkELKiVLjEiQ9OQO/Mn8Xt8KkCB5kvGPUOZHBK7ncrsn3J7qvzDHP82I/+Ax0meYabVNtKjWUfGJa5nG7Ia9sB3USxmwIt2yfbkQSLFMAHx4AIu4qYmvpebbpz33suX7+j6sTi8UtoQq1FG84ppvJ4PcPMAnbiot7sIzzcdDQ7GdFBC6cyx8KleW6P5nfIaIICtOWOMgAIcszw0myLbOHiFG6q+KUMqFVPREwHjOlQOBjRZgjxRYW2Ie8NRDICBhGzPbTlveV8hlNNIUKqxVZidPfEw0Lj3ttkFUpZz6MxU6SW68yfb+fd87KJlus=----ATTACHMENT:----MzI5OTU1NTgwOTc3OTEzNiA0OTY4OTY5MzU1OTc2ODE2IDg5NTE0ODIzMTI2NDExMzQ=