#37470 [Opn]: PHP_INI: expose_php = Off
| From: | clover at fromru dot com | Date: | Wed, 17 May 2006 06:27:08 +0000 |
| Subject: | #37470 [Opn]: PHP_INI: expose_php = Off | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97239@lists.php.net to get a copy of this message | ||
ID: 37470
User updated by: clover at fromru dot com
Reported By: clover at fromru dot com
Status: Open
Bug Type: Output Control
Operating System: WIN32
PHP Version: 5.1.4
New Comment:
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
...
Previous Comments:
------------------------------------------------------------------------
[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