ID:               37470
 User updated by:  clover at fromru dot com
 Reported By:      clover at fromru dot com
-Status:           No Feedback
+Status:           Closed
 Bug Type:         Output Control
 Operating System: WIN32
 PHP Version:      5.1.4
 New Comment:

The version of my PHP was 5.1.2, i updated to 5.1.4 and the bug was
solved. But I just did not find this in "changes log".


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

[2006-05-25 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2006-05-17 06:51:58] [EMAIL PROTECTED]

So which PHP version are you using after all?
Bug report says 5.1.4 and you're saying it's 5.1.2.


------------------------------------------------------------------------

[2006-05-17 06:27:08] clover at fromru dot com

Actual result:
--------------
HTTP/1.1 404 Not Found\r\n
Date: Tue, 16 May 2006 11:40:01 GMT\r\n
Server: Apache\r\n
Content-Length: 136\r\n
Connection: close\r\n
Content-Type: text/html\r\n
\r\n <- THIS IS INCORRECT LINE ("X-Powered-By: PHP/5.1.2")
\r\n
<html>\r\n
 <head>\r\n
...

------------------------------------------------------------------------

[2006-05-17 06:23:10] clover at fromru dot com

Description:
------------
I set the "ErrorDocument 404 /HTTP_NOT_FOUND.php" in the apache2
configuration and "expose_php = Off" in the PHP_INI file.
And I using telnet to the localhost:80 to look headers and content:
GET /non_existing_page HTTP/1.0
Host: localhost

HTTP response header ends with \r\n\r\n\r\n instead of \r\n\r\n
I changed my option "expose_php = On" and fixed this problem

Reproduce code:
---------------
I have no code in my /HTTP_NOT_FOUND.php, only html from the first
line:
<html>
 <head>
...

Expected result:
----------------
HTTP/1.1 404 Not Found
Date: Tue, 16 May 2006 11:40:01 GMT
Server: Apache
Content-Length: 136
Connection: close
Content-Type: text/html

<html>
 <head>
...

Actual result:
--------------
HTTP/1.1 404 Not Found
Date: Tue, 16 May 2006 11:40:01 GMT
Server: Apache
Content-Length: 136
Connection: close
Content-Type: text/html


<html>
 <head>
...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37470&edit=1

Reply via email to