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:----mfl+5VyT4P5Au4qvnU3Mj7spQPor4RoZpkXI35BF5nc7VLOkAdAlAGV+PYSvRWscTliqKxFUoWn1kYFIA1/5GC/jIDMo/iF1t5fWiXyw5F0LBNNBCbw2gCGlo6n0R+oscjxt6Zi3CwaLf6o3ZJHWj4kmfKuEBPVmbzrKlP6G+attSB6x0Y9TKox5uZTboUkGEoBPV+Jvh3tSRsxQJrDPhDnppHXIoq35Kf2f9pXXQMNXl2SRIktPfOuVZZDinE6XDaZZzvDwpF+UhOpvpM9ldf4R0l/p7NnRrI2JCGuw2EVKUfIlCrSJJOWhfJFxBRYkWTE7GlNbKHYTg4qvf+rKPfypeCBfqAW0vs6lX6uD8xZg5GKg6pGPegu438CxjZm/nzQYk1SfhU2/55NsfoYVgx528gedD/OgCCSoKkl55qq2RaCUQZBXEzh3hw8vH6PnkU3Joha9+0Gy5JP6HzW+j9llsf+W9NR2q5Ncco4WZV9Y8XNkbJtWhU0SubXNDgMYqe1YQ3u9/0F6V/2uYgXjFrZZkhYEGlc+kvV+0YnsdDrMv9MLeaTz2iDSHrs1hX9Yjud15wRM10Bs7bCf7mg4D7u+gey0TsUgrGDjuNvg+sp/kKnFAbCWghwejIOUixpQgeDaIppW7chI/V7gNutXojoR23gvM9ucOjWBOLIPYKI=----ATTACHMENT:----NzEyMTg5MzM1OTgwNjA1MCA5NjUyMzA1NzIxNzU1OTM4IDc3MjkyMTg4ODU0NjU0ODM=