From:             rainer-phpbugs at 7val dot com
Operating system: 
PHP version:      5.4.20
Package:          HTTP related
Bug Type:         Bug
Bug description:Mixing header('Status',  and other header with int 
$http_response_code

Description:
------------
The int $http_response_code for later calls to header() don't update any
earlier codes set with header('Status: ???'). The Documentation claims that
it "Forces the HTTP response code to the specified value". If
header('Status: ...') has not been used beforehand, setting
http_response_code works as expected.

Test script:
---------------
<?php
header('Status: 500 Internat Server Error', true, 500);
header('Status: 200 OK', true, 200);
header('WWW-Authenticate: Basic realm="Access"', true, 401);
/* this would work: header('Status: 401 OK', true, 401); */




-- 
Edit bug report at https://bugs.php.net/bug.php?id=65791&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65791&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65791&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65791&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65791&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65791&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65791&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65791&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65791&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65791&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65791&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65791&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65791&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65791&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65791&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65791&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65791&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65791&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65791&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65791&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65791&r=mysqlcfg

Reply via email to