ID:               48041
 Updated by:       [email protected]
 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

Reply via email to