|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2014-07-16 10:23 UTC] chazmead89 at gmail dot com
  [2014-07-16 10:54 UTC] chazmead89 at gmail dot com
  [2014-07-16 10:59 UTC] chazmead89 at gmail dot com
  [2014-07-16 11:03 UTC] chazmead89 at gmail dot com
  [2014-07-16 13:10 UTC] chazmead89 at gmail dot com
 
-Status: Open
+Status: Closed
  [2014-07-16 13:10 UTC] chazmead89 at gmail dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
Description: ------------ Trying to set response headers using the Yaf_Response_Http->setHeader() does not set the header on the object. Currently using yaf 2.9.9 -> a previous bug report states that this should have been fixed in 2.2?! Test script: --------------- class HomeController extends Yaf_Controller_Abstract { public function indexAction() { $response = $this->getResponse(); $response->setHeader('Content-Type', 'text/html; charset=utf-8'); $response->setBody('hello world'); die('<pre>' . print_r($response, true) . '</pre>'); } Expected result: ---------------- Yaf_Response_Http Object ( [_header:protected] => Array ( [Content-Type] => text/html; charset=utf-8 ) [_body:protected] => Array ( [content] => hello world ) [_sendheader:protected] => 1 [_response_code:protected] => 200 ) Actual result: -------------- Yaf_Response_Http Object ( [_header:protected] => Array ( ) [_body:protected] => Array ( [content] => hello world ) [_sendheader:protected] => 1 [_response_code:protected] => 200 )