#48041 [Opn->Fbk]: no headers sent if output is blank

From: Date: Thu, 23 Apr 2009 16:13:21 +0000
Subject: #48041 [Opn->Fbk]: no headers sent if output is blank
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-136164@lists.php.net to get a copy of this message
 ID:               48041
 Updated by:       jani@php.net
 Reported By:      mortals at seznam dot cz
-Status:           Open
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: linux
 PHP Version:      5.2.9
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

I can not reproduce this on 3 servers (all being 64bit..)


Previous Comments:
------------------------------------------------------------------------

[2009-04-22 09:52:55] mortals at seznam dot cz

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 this bug report at http://bugs.php.net/?id=48041&edit=1



Thread (12 messages)

« previous php.bugs (#136164) next »