/**
* Response status
*/
- private $responseStatus = "200 OK";
+ private $responseStatus = '200 OK';
/**
* Array with all headers
throw new ResponseHeadersAlreadySentException($this, self::EXCEPTION_HEADERS_ALREADY_SENT);
} elseif (!headers_sent()) {
// Send headers out
- header("HTTP/1.1 {$this->responseStatus}");
+ header('HTTP/1.1 ' . $this->responseStatus);
// Used later
$now = gmdate('D, d M Y H:i:s') . ' GMT';
// Send all headers
foreach ($this->responseHeaders as $name => $value) {
- header("{$name}: {$value}");
- //* DEBUG: */ echo "{$name}: {$value}<br />\n";
+ header($name . ': ' . $value);
+ //* DEBUG: */ $this->debugOutput('name=' . $name . ',value=' . $value);
} // END - foreach
// Send cookies out?
if (count($this->cookies) > 0) {
// Send all cookies
$cookieString = implode(' ', $this->cookies);
- header("Set-Cookie: {$cookieString}");
+ header('Set-Cookie: ' . $cookieString);
// Remove them all
$this->cookies = array();