From:             mortals at seznam dot cz
Operating system: linux
PHP version:      5.2.9
PHP Bug Type:     *General Issues
Bug description:  no headers sent if output is blank

Description:
------------
no headers sent if output is blank on 64bit system (for example
redirection dont work). 5.2.9 on 32bit servers is ok.

Reproduce code:
---------------
<?
$test = 0;
?>

or

<? 
header('HTTP/1.1 301 Moved Permanently'); 
header('Location: http://www.example.com'); 
?>


Expected result:
----------------
telnet example.com 80
GET /test.php HTTP/1.1
Host: example.com 

HTTP/1.1 200 OK
Date: Wed, 22 Apr 2009 09:23:11 GMT
Server: Apache
Cache-Control: max-age=7200
Expires: Wed, 22 Apr 2009 11:23:11 GMT
Content-Length: 0
Content-Type: text/html

Connection closed by foreign host.


Actual result:
--------------
telnet example.com 80
GET /test.php HTTP/1.1
Host: example.com

Connection closed by foreign host.

-- 
Edit bug report at http://bugs.php.net/?id=48041&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48041&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48041&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48041&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48041&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48041&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48041&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48041&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48041&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48041&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48041&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48041&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48041&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48041&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48041&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48041&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48041&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48041&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48041&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48041&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48041&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48041&r=mysqlcfg

Reply via email to