php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37470 PHP_INI: expose_php = Off
Submitted: 2006-05-17 06:23 UTC Modified: 2006-06-13 07:23 UTC
From: clover at fromru dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 5.1.4 OS: WIN32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: clover at fromru dot com
New email:
PHP Version: OS:

 

 [2006-05-17 06:23 UTC] 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>
...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-17 06:27 UTC] 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:51 UTC] tony2001@php.net
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-25 01:00 UTC] 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-06-13 07:23 UTC] clover at fromru dot com
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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 05:01:30 2024 UTC